Link to home
Start Free TrialLog in
Avatar of Andy Green
Andy GreenFlag for United Kingdom of Great Britain and Northern Ireland

asked on

File Upload without using input type - file

Hi All

Hope someone can help with this, its how to upload a file without using the file input tag and the browse button.

What I have is an application that takes a file and uploads it, using the file type and browse and it's fine. The path is stored in a database for later use.

That later use is to take the file and move it to another server (production), so I already have the location of the file in the database, and I dont want the users to have to browse to it, rather I want to use the database location.

But there seems to be some other 'hidden' things that happen when you use the file input tag, that I cant replicate with a textbox, set to readonly.

Any ideas?

Andy
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

want to upload through html form / web page???
Avatar of Andy Green

ASKER

Yes, but not use the input tag 'file', I have to use the text tag for the file.

Andy
ASKER CERTIFIED SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

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
i mean through HTTP? .,
I know but does anyone have a fudge, like maybe changing the inner html on the control, or javascript to go and grab the file on form submit.

Always hopeful

Andy
SOLUTION
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
Thanks for link - looking at it now.

Web Server is IIS 6 and ASP 3. I have tried to pre populate the file upload and set it to read only but apparently it cant be done.

Andy
Thanks both.

In the end I did it with FSO on the server.

I Have shared the points

Andy