Forums

ASP

This topic is locked

Rename on Upload

Posted 25 Jun 2003 05:35:55
1
has voted
25 Jun 2003 05:35:55 Kurt Buesching posted:
I recently purchased the Pure ASP Upload 2 Add On Pack and I have a question with the "Rename on Upload" function. I would like the file to be renamed as a value that the user can enter in a seperate text field on the upload page. After they select the file they fill in "123456.jpg" in a text field called "NewName" and that's what the file is renamed to. I tried putting several variations of "Request.Form("NewName"" into the rename mask but no luck. I'm sure it's just a matter of getting the correct syntax in the mask field. Aside from this everything else works fine. Any suggestions on how to do this?

Replies

Replied 30 Jun 2003 11:32:28
30 Jun 2003 11:32:28 Patrick Woldberg replied:
instead of Request.Form use UploadFormRequest

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 07 Jul 2003 15:16:07
07 Jul 2003 15:16:07 Kurt Buesching replied:
Thanks Patrick - but since my post I've done something a little different that is still giving me some trouble. I've set it up to rename based on a value from a pull-down menu generated by a recordset from a SQL database. Everything works except that it always renames the file to the first record in the database and not the one that was selected from the pull-down. Suggestions? - Thanks.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
instead of Request.Form use UploadFormRequest

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 07 Jul 2003 23:36:39
07 Jul 2003 23:36:39 mr binarian replied:
normally this would occur if your page was not reiveing a URL parameter of form based ID or if you recordset was not filtering based on a form based paramter.

Reply to this topic