cgarrett has asked for the wisdom of the Perl Monks concerning the following question:

Thanks for the previous help.
I am looking into macbinary but let me elaborate on what I'm trying to do. I want to make an upload form which when used by a Mac user will encode a file such that if I access it with a Mac after uploading, it retains creator/type information. Does the encoding have to be done prior to upload, or can it be done during? I cannot rely on the client to name files or encode them properly. BTW, our server will be using OS X Server.

Thanks,
Cliff

Replies are listed 'Best First'.
Re: Macintosh upload revisited
by PodMaster (Abbot) on Dec 03, 2002 at 15:27 UTC
    I don't think that's going to happen. The only way I see something like that happening, is if the user encodes the file himself before he uploads it (with something like tar or something similar)


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    ** The Third rule of perl club is a statement of fact: pod is sexy.

Re: Macintosh upload revisited
by adrianh (Chancellor) on Dec 04, 2002 at 00:06 UTC

    As PodMaster says, you can't do this with a normal browser.

    I have a vague recollection that some early versions of MSIE on the Mac did try to encode things in AppleDouble format if they found a resource fork - but this is certainly no longer true.

    If you want to keep everything as a web service, you could write a perl script for your Mac users to run locally that packaged up the file in an appropriate format, then use LWP and friends to POST it to your server. MacPerl works very well on OS 9, and you have perl as standard on OS X.