ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!

Download and Activate to enter!
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Download to Enter | Contest Rules

Learn More!

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 2nd, 2006, 07:23 AM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
(regarding this thread: http://forums.aspfree.com/code-bank...ures-94647.html)

I also want to know how to change the name, i would like to change it completely though.

Quote:
Originally Posted by degsy
Where is the best part in the script to change the filename.

e.g.
original image name = myimage.jpg

before saving to disk append the date (would require to split the filename at the period, append the date, then rejoin the parts)
myimage_01062006.jpg

or prefix the image name with objUpload("name") from the form
username_myimage.jpg

Last edited by Shadow Wizard : June 13th, 2006 at 08:41 AM.

Reply With Quote
  #2  
Old June 4th, 2006, 03:08 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 31,109 Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)  Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 3 Months 3 Weeks 2 Days 20 h 18 m 8 sec
Reputation Power: 2919
Quote:
Originally Posted by JustXtreme
I also want to know how to change the name, i would like to change it completely though.
I changed the code and re-attached it, now you can change this line:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), "")

to this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), "newnamehere")

this will save the file under the name "newnamehere" using the original extension of
the uploaded file.
you can also have this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), "newnamehere.txt")

and it will override the original extension, saving the file with txt extension.
and as before, this:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), "")

will save the file under its original name.
Comments on this post
JustXtreme agrees: KICK ARse, thanx alot.

Reply With Quote
  #3  
Old June 5th, 2006, 09:12 AM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
will a variable work there. something like <%response.Write objRS("cnum")%> or request.Form("cnum") if so can i get a sample of that. i'm getting a error, i'm sure i'm not formating something write.

Reply With Quote
  #4  
Old June 5th, 2006, 09:19 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 134
Here is some sample code for various file name appendages

Code:
If (objUpload.File(x).ImageWidth>200) Or (objUpload.File(x).ImageHeight>200) Then
				Response.Write("Image to big, not saving!")
			Else 
				filename = objUpload.File(x).FileName
				extpos = InStrRev(filename, ".")-1
				ext = Right(filename, len(filename)-extpos)
				filename = Left(filename, extpos)
								
				'filename = filename & "_" & Day(Date) & "_" & Month(Date) & "_" & Year(Date)
				filename = filename & "_" & UDate(Now())
				filename = filename & ext
				Response.Write "File saved as: <b>" & filename & "</b><br>"
				
				filedate_start = InStrRev(filename, "_") + 1
				filedate_end = InStrRev(filename, ".")
				filedate = Mid(filename, filedate_start, filedate_end-filedate_start)
				Response.Write "File timestamp: " & filedate & " = " & unUdate(filedate) & "<br>"
				
				'Response.End 
				Call objUpload.File(x).SaveToDisk(Server.MapPath("."), filename)
				Response.Write("File saved successfully!")
			End If



Date functions
Code:
Function UDate(oldDate)
  	UDate = DateDiff("s", "01/01/1970 00:00:00", oldDate)
End function 

Function unUDate(intTimeStamp)
  unUDate = DateAdd("s", intTimeStamp, "01/01/1970 00:00:00")
End function


Quote:
Found 1 files...
Original file name: av-123.gif
File type: image/gif
File size: 1838
Image width: 60
Image height: 60
File saved as: av-123_1149520651.gif
File timestamp: 1149520651 = 05/06/2006 15:17:31
file saved successfully!
Comments on this post
Shadow Wizard agrees: nice, thanks for sharing!
__________________
CyberTechHelp

Reply With Quote
  #5  
Old June 5th, 2006, 09:54 AM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), request.form("cnum"))

when i do this i get this
Request object error 'ASP 0207 : 80004005'

Cannot use Request.Form

/demoupload.asp, line 24

Cannot use Request.Form collection after calling BinaryRead

Reply With Quote
  #6  
Old June 5th, 2006, 02:17 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 31,109 Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)  Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 3 Months 3 Weeks 2 Days 20 h 18 m 8 sec
Reputation Power: 2919
indeed, you can't use Request.Form when uploading. Instead, use the upload component:
Code:
Call objUpload.File(x).SaveToDisk(Server.MapPath("Uploads"), objUpload("cnum"))

Reply With Quote
  #7  
Old June 5th, 2006, 02:21 PM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
how does that tie in to my data, do i just make something like
cnum=response.Write objRS("cnum") or not so much.

Reply With Quote
  #8  
Old June 5th, 2006, 02:26 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 31,109 Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)  Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 3 Months 3 Weeks 2 Days 20 h 18 m 8 sec
Reputation Power: 2919
sorry, I lost you now. that code you gave is utterly meaningless and wrong,
to assign value to variable have such code:
Code:
cnum = objRS("cnum")

for this to work, you must have variable called "objRS" which is
valid recordset, and field called "cnum" should exist in the table
you selected the data from.

Reply With Quote
  #9  
Old June 5th, 2006, 02:29 PM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
yea i'm trying to do that. i'm trying to add your aspcode and form to my current form.
what i did was use you name field and made that a variable which worked but i wanted to know how to make my own.
thanx

Reply With Quote
  #10  
Old June 5th, 2006, 02:44 PM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
Ok i added your form and asp code to my form, im not even sure if i can do that, but when i hit submit on your form button it just reset the page to the cnumentry.asp page.
any idea.
and this is what my url says
http://audits.demosales.net/auditquery.asp?action=1
Attached Files
File Type: zip auditquery.zip (3.3 KB, 132 views)

Reply With Quote
  #11  
Old June 5th, 2006, 03:15 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 31,109 Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)  Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 3 Months 3 Weeks 2 Days 20 h 18 m 8 sec
Reputation Power: 2919
this chunk of code looks fine:
Code:
<form action="<%=Request.ServerVariables( "Script_Name" )%>?action=1" enctype="multipart/form-data" method="POST"><br />
<strong>You Entered Refrence Number: <% response.Write objrs("cnum")%><br />
Please Upload A Picture For This Event.<br /></strong><br />
<strong>Audit Picture:</strong> <input type="file" name="file1" /><br />
<input type="hidden" name="name" value=<%response.Write objRS ("cnum")%>  /><br />
<br />
<button type="submit">Upload</button>
</form>

after clicking the Upload button the form should be submitted to the same page.
the link you gave is not working (server not found) can you provide valid link?

Reply With Quote
  #12  
Old June 5th, 2006, 03:25 PM
JustXtreme's Avatar
JustXtreme JustXtreme is offline
I-Team User
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: May 2006
Location: Florida
Posts: 1,217 JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level)JustXtreme User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 4 h 49 m 9 sec
Reputation Power: 33
yea it's only internal right now. sorry i would love to give u a valid link. i just wanted u to see what the url looked like.
I can get it to work when there's not another form in the equation? I have the attached working, but i want it to be either in the same form or at least on the same page.

by the way thanx for all the help.
Attached Files
File Type: zip cnumentryforupload.zip (1.7 KB, 288 views)

Reply With Quote
  #13  
Old June 5th, 2006, 03:42 PM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information
 
Join Date: Sep 2004
Location: Israel
Posts: 31,109 Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 29th Grade (Above 100000 Reputation Level)  Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2595929 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 3 Months 3 Weeks 2 Days 20 h 18 m 8 sec
Reputation Power: 2919
you should add the cnum to the querystring along with the action:
Code:
<form action="<%= Request.ServerVariables( "Script_Name" )%>?action=1&cnum=<%= objRS("cnum")%>" enctype="multipart/form-data" method="POST"><br />
Comments on this post
JustXtreme agrees: Holy Crap U r the Wizard, Thanx

Reply With Quote
  #14  
Old June 6th, 2006, 04:22 AM
m27uk2000 m27uk2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 15 m27uk2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m 7 sec
Reputation Power: 0
Hi Guys

I'm posting in here as I just can't seem to get an answer for my file upload problem, i've noticed a few experts in here so hope you don't mind me posting in here.

I am using Freeaspupload and want to insert the name of the file that gets uploaded into the database.

I just don't know what code to use to get the filename, any ideas?

Many thanks.

Reply With Quote
  #15  
Old June 6th, 2006, 04:35 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 134
Use the ShadowUploader instead. It has it built in.
You can get the upload code from page 1 and some filename examples from page 5

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Shadow Uploader - change the name of the uploaded file change it completely


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 



Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 11 - Follow our Sitemap