Hi, I have an app that use CKeditor who send images to the server and the
function who catch this file is more or less like this:
Server TWO
def ImgUpload():
a = stuffs.Stuffs() #Custom library
name = a.password(20)
rand_name = a.password(20)
#path where the files will be saved
I found a solution
step one: install the Paramiko library on the application server
(SERVER_ONE)
step two: import the paramiko library
step three: use the "putfo" method
here is an example
def file_upload():
import paramiko
form = FORM(
DIV(
INPUT(
_type = "file",
_name = "file",
)
),
DIV(
IN
2 matches
Mail list logo