Re: Add to a filename in multifile upload
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 42278
interpreted = N
texte = >I have people upload photos files for ad listings and I'm trying to >identify them after uploading.>>I'd like to be able to add something to each filename entered during >the upload process, maybe their name so I can later identify which >ad the photo(s) belongs to. Reason for this is usually the photos >need to be worked over before they are made available to view on the >website . . .You're better off renaming the uploaded files immediately as they are uploaded. You can write webdna code that uses the cart value to give each uploaded file a new name. This has two benefits:1- It insures that a newly uploaded file will never overwrite a previously uploaded file;2- it lets you put whatever extension on the uploaded file that you feel like putting on that file -- which means you can prevent someone from uploading a .tpl file and doing bad things via webdna if you just rename all uploaded files with a .gif extension for example.Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines http://www.webdna.net----------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I have people upload photos files for ad listings and I'm trying to >identify them after uploading.>>I'd like to be able to add something to each filename entered during >the upload process, maybe their name so I can later identify which >ad the photo(s) belongs to. Reason for this is usually the photos >need to be worked over before they are made available to view on the >website . . .You're better off renaming the uploaded files immediately as they are uploaded. You can write webdna code that uses the cart value to give each uploaded file a new name. This has two benefits:1- It insures that a newly uploaded file will never overwrite a previously uploaded file;2- it lets you put whatever extension on the uploaded file that you feel like putting on that file -- which means you can prevent someone from uploading a .tpl file and doing bad things via webdna if you just rename all uploaded files with a .gif extension for example.Sincerely,Kenneth Grome---------------------------------------------------WebDNA Professional Training and Development Center175 J. Llorente Street +63 (32) 255-6921Cebu City, Cebu 6000 kengrome@webdna.netPhilippines http://www.webdna.net----------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Kenneth Grome
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Deleting Orders (1997)
SiteEdit NewFile.html ? (1997)
Templetes? (1999)
Help name our technology! I found it (1997)
resorting found set (2005)
WebCat2 Append problem (B14Macacgi) (1997)
OT: javascript help (2003)
Running 2 two WebCatalog.acgi's (1996)
setting taxable to true (1997)
E-mailer error codes (1997)
unable to launch acgi in WebCat (1997)
Big Databases (1997)
RE: Automatic thumbnail images (1998)
[WebDNA] Ubuntu 14.04 & WebDNA (2017)
TeaRoom Order fields email account remain empty even thoughthewy are filled. (1997)
[referrer] tag (1997)
japanese characters (1997)
Problem searching bw & ne of a word (1999)
[WebDNA] Session timeout solution (2010)
OT: Please set your computer's clock (1997)