Solved

File Upload without using input type - file

Posted on 2008-06-19
8
805 Views
Last Modified: 2010-05-18
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
Comment
Question by:Andy Green
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21820754
want to upload through html form / web page???
0
 
LVL 3

Author Comment

by:Andy Green
ID: 21820812
Yes, but not use the input tag 'file', I have to use the text tag for the file.

Andy
0
 
LVL 36

Accepted Solution

by:
Loganathan Natarajan earned 250 total points
ID: 21820857
Sorry, you cannot simply upload files without using <input file type control.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21820861
i mean through HTTP? .,
0
 
LVL 3

Author Comment

by:Andy Green
ID: 21820866
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
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 21821114
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
 
LVL 3

Author Comment

by:Andy Green
ID: 21821245
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
 
LVL 3

Author Closing Comment

by:Andy Green
ID: 31468700
Thanks both.

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

I Have shared the points

Andy
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question