Solved

File Upload without using input type - file

Posted on 2008-06-19
8
801 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
  • 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 109

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

770 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