Upload Video per FTP
Posted: Fri Jan 18, 2013 8:08 pm
Hi,
I am trying to upload a video to a ftp-server. Uploading an image is no problem. With the code below I also can upload a file, but not the video. The content of the file is only the path, if I open the file with an editor.
For pick the video I have an external av from mergext
the problem is the line: put tFileForUpload into URL theURL - only the filepath is in the uploaded file
here I need binary files ? but how to "convert"?
thanks for help
Chris
Code: ***********************************************
on touchEnd pId
mobGUIUntouch the long id of me
local tFileForUpload, tFileName
put mergAVPick("library","medium",180) into tFileForUpload
set the itemdel to "/"
put "ftp://user:pwd@ftpserver/myvideo1.mov" into theURL
put tFileForUpload into URL theURL !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if the result is not empty then
answer the result
hide group "progress"
end if
end touchEnd
I am trying to upload a video to a ftp-server. Uploading an image is no problem. With the code below I also can upload a file, but not the video. The content of the file is only the path, if I open the file with an editor.
For pick the video I have an external av from mergext
the problem is the line: put tFileForUpload into URL theURL - only the filepath is in the uploaded file
here I need binary files ? but how to "convert"?
thanks for help
Chris
Code: ***********************************************
on touchEnd pId
mobGUIUntouch the long id of me
local tFileForUpload, tFileName
put mergAVPick("library","medium",180) into tFileForUpload
set the itemdel to "/"
put "ftp://user:pwd@ftpserver/myvideo1.mov" into theURL
put tFileForUpload into URL theURL !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if the result is not empty then
answer the result
hide group "progress"
end if
end touchEnd