I've got a Mac OS X
Rev app that allows the user to upload files to an FTP server, and
download files locally from the same server. (It does many other
things, but this component is the part I have a question about). I've
noticed that if I upload jpg, gif, pdf, ppt, doc, xls files, and then
pull them back down again using the put URL "ftp://" command, all the
files lose their filetypes. Is this because the Mac resource-fork gets
lost during the transfer?
I know that I can get around this problem by having Rev look at the
extension of the file and set the filetype back again as it's
transferring to the user's hard-drive. If this is the only way around
this problem, has anyone created a master list of file-types in a Rev
script and parsed what their 8-character creator/type strings are?
Eg.
if extension = "jpg" then set the filetype to "prvwjpeg"
if extension = "ppt" then set the filetype to .....
if extension = "doc" then set the filetype
to .....
if extension = "mov" then set the filetype
to .....
- Rob
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution
- Re: ftping and filetype property Rob Gould
- Re: ftping and filetype property Rob Cozens
- Re: ftping and filetype property Rob Cozens
- Re: ftping and filetype property Richard Gaskin
