Problems downloading file from webserver
Posted: Mon Sep 23, 2013 3:37 pm
Hi All,
Nearly finished my Summer School Project but have a problem downloading from a webserver I'm using some code found within the Apps Academy on how to download html or a file. My code is:-
on mouseUp
put the selectedtext of field "Video List" into theVideoFileName
set the itemDel to "/"
ask file "Save file as:" with selectedtext of field "Video List"
if it is empty then exit mouseUp
put "http://webserver/folder/" & theVideoFileName into VideoUrl
put VideoURL into URL ("file:" & it)
end mouseUp
All the above does is download a 56bytes file named as I have requested but not the full file (Which is a .mov file)
Any ideas?, I have tried a binfile also, same result.
Nearly finished my Summer School Project but have a problem downloading from a webserver I'm using some code found within the Apps Academy on how to download html or a file. My code is:-
on mouseUp
put the selectedtext of field "Video List" into theVideoFileName
set the itemDel to "/"
ask file "Save file as:" with selectedtext of field "Video List"
if it is empty then exit mouseUp
put "http://webserver/folder/" & theVideoFileName into VideoUrl
put VideoURL into URL ("file:" & it)
end mouseUp
All the above does is download a 56bytes file named as I have requested but not the full file (Which is a .mov file)
Any ideas?, I have tried a binfile also, same result.