Link to home
Start Free TrialLog in
Avatar of bylj
bylj

asked on

File Upload

I have created a form that updates an access database with 10 fields.

At the same time I want to upload a pdf file to the server and create a file tag reference in the database.

I can get both to work seperately on different forms, but not using the same form.

Is there anyway to combine these to fuctions on the same form?

For file upload I found code at:
http://www.shastrynet.com/asp/aspupload.asp

Please help

Thanks
Avatar of btyap
btyap

To solve your problem, you can go to www.aspsmart.com to download the aspsmartupload component. This component will allow you to submit form data as well as files at one submission click.
Avatar of Michel Sakr
If using IE4+ (works on IE3 too)  you can use the <input type=file .. But on the server side you'll need posting acceptor.. read more:

http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/INPUT_file.asp
ASKER CERTIFIED SOLUTION
Avatar of uncle_med
uncle_med

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There are bunches of Upload utilities available, some better than others, ASPUpload is in my opinion the best component available for the price.

What I have seen in a lot of the scripts, including the one above, is there is no catch to trap the file type being uploaded, I always check for a type, image/gif or image/pjpeg before I allow the upload to proceed.  By looking at uncle_med's code, it looks good, except I would put a file type trap to prevent any problems with rogue hackers...
Greetings,

This question is still open today.  Perhaps it was overlooked.  If you've been helped, just choose the expert's comment which served your needs as the accepted answer to then grade and close.  If more is needed, please advise.

Your responsiveness is appreciated.

Asta
bylj---->  You have asked 57 questions at this site and only closed 39 of them, which is against our site's Guidelines.  Please click the HELP DESK link on the left regarding Member Agreement, Guidelines and the Question/Answer process.  I will be updating all your open questions with this information and monitor them for closures.  Please return as quickly as possible to complete these questions.  If special handling is needed, comment here with details.

Open today:
https://www.experts-exchange.com/jsp/qShow.jsp?ta=oracle&qid=20091636
https://www.experts-exchange.com/jsp/qShow.jsp?ta=win2k&qid=20241395
https://www.experts-exchange.com/jsp/qShow.jsp?ta=win2k&qid=20241043
https://www.experts-exchange.com/jsp/qShow.jsp?ta=dbgen&qid=20247085
https://www.experts-exchange.com/jsp/qShow.jsp?ta=msaccess&qid=20237668
https://www.experts-exchange.com/jsp/qShow.jsp?ta=oracle&qid=20088755
https://www.experts-exchange.com/jsp/qShow.jsp?ta=hardgen&qid=20228196
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20248490
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20108859
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20091635
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20088839
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20087841
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20085748
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20081510
https://www.experts-exchange.com/jsp/qShow.jsp?ta=asp&qid=20081065
https://www.experts-exchange.com/jsp/qShow.jsp?ta=msvisdev&qid=20088291
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20220006
https://www.experts-exchange.com/jsp/qShow.jsp?ta=networkgen&qid=20198006

It helps you tremendously to remain active in all your open questions, provide ongoing feedback to the experts who step in to help you so that your goal can be achieved quickly, and the expert(s) awarded with points for their excellent help.

Your responsiveness to these is appreciated.

Moondancer
Community Support Moderator @ Experts Exchange
Admin notified of User neglect. Force-accepted by
Netminder
Community Support Moderator
Experts Exchange