thanks to revolution and the community I am learning revolution day by day but there are some topics I am not aware of.
I have 2 problems I am trying to solve for 2 days now.
1. Problem The Upload Problem
I ask for a file and upload the result to the server
Code: Select all
answer file "Select ZIP file to upload:"
put it into uploadFile
local tDestination
put "ftp:// "& FTPUSER &":"& FTPPASS & "@" & "rockraidersunited.org/lego/" & uploadFile into tDestination
How do I upload just the selected file but without the Directory structure?
2. Problem The Download Problem
I search on the server for files and these files are listened in a Filelist (works great)
Now I try to select the files via the Filelist and try to download them (doesn´t work). I don´t have a hunch why it isn´t working and that´s why I am really confused.
Code: Select all
on mouseUp
-- put the selection of the ModListFile into the Variable tFileToDownload
put the hilitedLine of field "ModList" into tHilitedLine
put line tHilitedLine of field "ModList" into tFileToDownload
-- put the address of the file to download into a variable
put "ftp:// "& FTPUSER &":"& FTPPASS & "@" & "rockraidersunited.org/lego/" into tDownloadLink
put tFileToDownload after tDownloadLink
libURLSetStatusCallback "showProgress", the long name of me
libURLDownloadToFile tDownloadLink,newmod.zip ,"showProgress"
-- put tDownloadLink & tFileToDownload into tDownloadLink
-- set up a message to show the status of the download as it progresses
-- make sure the progress bar is hidden, as this property is used to initialize it
hide scrollbar "ProgressBar"
put empty into field "ProgressField"
put 0 into sDownloadStart
-- start the download process, telling Rev to call the "downloadComplete" handler when finished
-- load URL tDownloadLink with message "downloadComplete"
end mouseUp
Any help will be appreciated
Thanks,
Masterchief