FTP Application vs Revlet

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gimpeltf
Posts: 29
Joined: Wed Nov 08, 2006 5:14 pm

FTP Application vs Revlet

Post by gimpeltf » Wed Nov 10, 2010 9:45 am

I am trying to ftp files to on-rev after constructing them in revolution.
The code works fine in the IDE and in a compiled app.
However, when I create a web version it creates the file (took me a while to figure out where it was being created) but won't upload it.

put "ftp://user:password" & \
"@" & "domain.on-rev.com" & "/" into urlpath
put fld "Event_ID" & "_" & fld "thisbout" & ".htm" after urlpath
put the defaultfolder into xxx
put xxx & "/" & fld "Event_ID" & "_" & fld "thisbout" & ".htm" into htmlstuffiOutFileName
put htmlstuffiOutFileName into fld myStatus
open file htmlstuffiOutFileName for write
write htmlstuff to file htmlstuffiOutFileName
close file htmlstuffiOutFileName
uploadResults htmlstuffiOutFileName,urlpath
...

on uploadResults mySourceFile,myTargetFile
set the cursor to watch
put false into myResult
put doFTPcontent(mySourceFile, myTargetFile) into myResult
end uploadResults

function doFTPcontent myContent, myFilenameAndPath
put myFilenameAndPath into urlpath
set the itemdelimiter to tab
libURLSetStatusCallback "myProgress",the long id of fld "myStatus"
libURLftpUploadFile myContent,urlpath
put the result into myFTPResult
return myFTPResult
end doFTPcontent
Gimp

Desktop 32 bit Windows XP SP3-Laptop 64 bit Windows 7
4.6.1 Build 1392- Android Personal
HTC Thunderbolt 2.2

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: FTP Application vs Revlet

Post by Klaus » Wed Nov 10, 2010 1:44 pm

I think that the necessary internet library "libUrl" is not yet supported or available in Revlets.

Post Reply