• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fileupload naming schemes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fileupload naming schemes


  • Subject: Re: Fileupload naming schemes
  • From: Jaime Magiera <email@hidden>
  • Date: Mon, 30 Jul 2007 15:44:05 -0400


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?

A good method is to use a NSTimestamp().

For example,  uploads to my groupware WO app use a generated name of [groupshortname]MMDDYYYY. For more resolute naming, add the time...

[groupshortname]MMDDYYYYMMSSNSNS , etc.

Jaime Magiera
Sensory Research
http://www.sensoryresearch.net




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

This email sent to email@hidden

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

  • Prev by Date: Fileupload naming schemes
  • Next by Date: Re: Fileupload naming schemes
  • Previous by thread: Fileupload naming schemes
  • Next by thread: Re: Fileupload naming schemes
  • Index(es):
    • Date
    • Thread