<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<font size="2"><font face="Helvetica,sans-serif">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.&nbsp; (It does many other
things, but this component is the part I have a question about).&nbsp; 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 <a class="moz-txt-link-rfc2396E" href="ftp://">"ftp://"</a> command, all the
files lose their filetypes.&nbsp; Is this because the Mac resource-fork gets
lost during the transfer?<br>
<br>
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.&nbsp; 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?&nbsp; <br>
<br>
Eg. <br>
<br>
if extension = "jpg" then set the filetype to "prvwjpeg"<br>
if extension = "ppt" then set the filetype to .....<br>
</font></font><font size="2" face="Helvetica,sans-serif"><font  face="Helvetica,sans-serif">if extension = "doc" then set the filetype
to .....</font></font><br>
<font size="2" face="Helvetica,sans-serif"><font  face="Helvetica,sans-serif">if extension = "mov" then set the filetype
to .....</font></font><br>
<br>
<br>
<font size="2"><font face="Helvetica,sans-serif"><br>
- Rob<br>
<br>
<br>
</font></font>
</body>
</html>