Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload Button

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Dear All,

Can you show me how to make an image upload button?

Thanks.
 
I'm trying to upload a file from client side but don't know where to start. Something like inserting an attachment in email. Anyone?
 
there is a component called ASPSmartUpload. you can look into that if your server has it installed.
 
How do I know if my server has it installed or not? If it was installed on my server, how do I use it?

Thanks.
 
Thanks a bunch jOemOmma. I got this error:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'MidB'
/upload.asp, line 15

But at least you gave me something to start with.


 
It doesn't work for bmp but it work just fine for jpg.
Thanks again.
 
I still like the other link better because it has the interface so that user can browse & upload the file they want.

If the Button is replaced with
<a href=&quot;#&quot; onclick=&quot;javascrip:Upload()&quot;>Upload</a>

All function Upload() does is to open a new window (ULFile.asp) Then I get invalid procedure call.

I need help!!!

Thanks.
 
Just an (semi-educated) guess, but when you are opening a new page via a javascript call, it is not the same thing as submitting the form, and thus any request variables that are looking for form values from the calling page(s) would not be found in the ULFile.asp page. What you might try is submitting the form via javascript as opposed to simply opening a new window with the ULFile.asp (if you are using something akin to location.href = ULFile.asp).

Also, incidentally, you misspelled javascrip(t) which may also cause a problem.

Otherwise, you may need to post more of your code to get a better idea of the problem you are running into.

-----------------------------------------------------------------------------------------------------
&quot;If you can't explain something to a six-year-old, you really don't understand it yourself.&quot;
-- Albert Einstein
 
I have used the sample here:


I need to add a Response.Redirect into the end of this, but when I do I get an error stating:
'The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.'


Any suggestions as to how I can incorporate a Response.Redirect into this?


James Goodman MCSE, MCDBA
 
put this line at the top of ur file:

Response.Buffer = True

[Thanks in advance|Hope I helped you]
Exodus300
[pc3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top