File Uploading using PHP and MAC resource/data forks
Posted: Tue Oct 05, 2004 8:07 am
Hi
I have built a working file upload system which allows users to 'send' files to a website administrator (upload to a folder) . The only problem I am having is that MAC files seem to lose their resource fork when they are uploaded, or it gets merged with the data fork or something. Whatever the reason, when the admin person downloads the file, they just get the data fork which makes it hard to use because they do not know what application to run it with.
I thought about zipping the file before upload (so both forks stay within a zip file) but this does not seem possible as the file needs to be uploaded before anything can be done with it. Just wondering if anyone has any suggestions on how I can get over this problem?
Thanks in advance
Gareth
I have built a working file upload system which allows users to 'send' files to a website administrator (upload to a folder) . The only problem I am having is that MAC files seem to lose their resource fork when they are uploaded, or it gets merged with the data fork or something. Whatever the reason, when the admin person downloads the file, they just get the data fork which makes it hard to use because they do not know what application to run it with.
I thought about zipping the file before upload (so both forks stay within a zip file) but this does not seem possible as the file needs to be uploaded before anything can be done with it. Just wondering if anyone has any suggestions on how I can get over this problem?
Thanks in advance
Gareth