• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 816
  • Last Modified:

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
0
Andy Green
Asked:
Andy Green
  • 4
  • 3
2 Solutions
 
Loganathan NatarajanLAMP DeveloperCommented:
want to upload through html form / web page???
0
 
Andy GreenAuthor Commented:
Yes, but not use the input tag 'file', I have to use the text tag for the file.

Andy
0
 
Loganathan NatarajanLAMP DeveloperCommented:
Sorry, you cannot simply upload files without using <input file type control.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Loganathan NatarajanLAMP DeveloperCommented:
i mean through HTTP? .,
0
 
Andy GreenAuthor Commented:
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
0
 
Ray PaseurCommented:
Andy: You can do file uploads in Flash, and you might consider posting your query over in that zone.

What language is available on your server?  If you have PHP, I can show you how to prepopulate the file upload with the name.

Also, you may want to read this page:
http://www.quirksmode.org/dom/inputfile.html

HTH, ~Ray
0
 
Andy GreenAuthor Commented:
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
0
 
Andy GreenAuthor Commented:
Thanks both.

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

I Have shared the points

Andy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now