• 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: ERAttachmentProcessor file upload
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERAttachmentProcessor file upload


  • Subject: Re: ERAttachmentProcessor file upload
  • From: Mike Schrag <email@hidden>
  • Date: Thu, 23 Jul 2009 08:11:53 -0400

http://webobjects.mdimension.com/wonder/api/er/attachment/package-summary.html
it talks some about the variable replacement -- you can use $ {fileName}, but this is not really safe ... if someone uploads a file with the same name, it's going to be overwritten unless you namespace it with the pk in is own directory or something. you can make it return the original filename to the user, though, if you're using one of the proxied viewers (i.e. as long as you're not serving files from apache).


On Jul 23, 2009, at 4:13 AM, Rukmal Dias wrote:

hi,

Is it possible to give file name that we want in uploading files using ERAttachmentProcessor.

When a file is uploaded (e.g: style.css) it is in a folder like this.
.//1/attachments/c/8/9/1.css

How do I upload a file (e.g: my_file.gif) to the same above location with the mentioned name.


Thanks Rumal Dias _______________________________________________ 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


_______________________________________________
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: 
 >ERAttachmentProcessor file upload (From: Rukmal Dias <email@hidden>)

  • Prev by Date: Maven Resource / WebServerResource Flattening
  • Next by Date: Re: Changing font size for WOString
  • Previous by thread: ERAttachmentProcessor file upload
  • Next by thread: Maven Resource / WebServerResource Flattening
  • Index(es):
    • Date
    • Thread