Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fileupload naming schemes



You can supply a name, but if the file already exists in the target path, WO will not overwrite it .... instead it will leave as UGJYGUHG7b2378d4b23d7462b47bd6237 or something like that and the final file name is given to you in the bindings..... so you can rename it, move it or suck it into NSData and put it in a blob or whatever.

On Jul 30, 2007, at 3:35 PM, Aaron Thompson wrote:

Hello,
I'm just starting to work with file uploads using WOFileUpload. Are there any in-depth tutorials on this topic, especially concerning naming schemes and security? If there isn't any material available, then I have a couple questions to ask.
First, are there any reasons, security or otherwise, that all user- uploaded files should be renamed to some sort of safe, unique filename? If so (which I'm guessing), what's the best way to generate the filenames? And if not, how do you handle files of the same name?


Thank you!
Aaron Thompson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Fileupload naming schemes (From: Aaron Thompson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.