Solved

File Upload without using input type - file

Posted on 2008-06-19
8
806 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

623 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