Andy Green
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
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
want to upload through html form / web page???
ASKER
Yes, but not use the input tag 'file', I have to use the text tag for the file.
Andy
Andy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
i mean through HTTP? .,
ASKER
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
Always hopeful
Andy
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
Thanks both.
In the end I did it with FSO on the server.
I Have shared the points
Andy
In the end I did it with FSO on the server.
I Have shared the points
Andy