473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

INPUT TYPE=FILE Alternative.

I am aware of the security issues with the INPUT TYPE=FILE HTML form
element and not being able to set a default value for the control.

I dont want to be able to upload files , i just want to get their unc
paths and write them to a database , and then poulate the control with
the value when the page posts back.

Can i do this with a TEXT input element and some java script to
display the file/opnen dialog box and return the file name selected to
the text control?
Jul 20 '05 #1
2 2421
DU
Followup-to: comp.infosystems.www.authoring.html

Glenn M wrote:
I am aware of the security issues with the INPUT TYPE=FILE HTML form
element and not being able to set a default value for the control.

I dont want to be able to upload files , i just want to get their unc
paths and write them to a database , and then poulate the control with
the value when the page posts back.

Can i do this with a TEXT input element and some java script to
display the file/opnen dialog box and return the file name selected to
the text control?


The answer to your problem is explained right here:

Why and how to crosspost
http://www.cs.tut.fi/~jkorpela/usenet/xpost.html

Multiposting
Multiposting is when you post separate copies of a message to multiple
newsgroups. It is considered bad practice for a number of reasons:
http://www.safalra.com/internet/crosspost.html

DU
Followup-to: comp.infosystems.www.authoring.html
Jul 20 '05 #2
gl**********@bt.com (Glenn M) wrote:
I am aware of the security issues with the INPUT TYPE=FILE HTML form
element and not being able to set a default value for the control.

I dont want to be able to upload files , i just want to get their unc
paths and write them to a database , and then poulate the control with
the value when the page posts back.

Can i do this with a TEXT input element and some java script to
display the file/opnen dialog box and return the file name selected to
the text control?


Not if the browser is using the normal security model. Script is not
allowed any access to the client's file system.

--
Tim Slattery
Sl********@bls.gov
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Oxygenearth | last post by:
Please who could help me with this... I had my structure in Win32, with Apache, PHP, and MySQL, I had a page in which I am transfering an image to the database in MySQL using PHP. But now I am...
1
by: Joel Goldstick | last post by:
I wanted to write a simple page to let me choose a directory and then list the files in it. The end goal was to make an easy way to copy all the file names in a directory. I tested with Opera7,...
2
by: Glenn M | last post by:
I am aware of the security issues with the INPUT TYPE=FILE HTML form element and not being able to set a default value for the control. I dont want to be able to upload files , i just want to get...
3
by: oopaevah | last post by:
I want to have a separate button which invokes the "browse" button on an input type=file. In internet explorer the following code works ok, in firefox nothing happens. All I do is call click()...
5
by: hrpreet | last post by:
Hi All, I need the file chooser in the jsp, just for brosing and saving the file path in the database, so i have used the following code.I dont need to read the file content. I have to make it...
0
by: ThunderMusic | last post by:
Hi, I have a page where I have an input type=file control and many other controls... the thing is, when I cause a postback by any control on the page, if a file is selected in the input...
4
by: SammyBar | last post by:
Hi all, I wonder is it possible to upload the content of an <imgfield to a server. The content of the <imgwas downloaded from a web site different from the one it should be uploaded. The image...
12
by: Larry Bud | last post by:
I rarely crosspost, but this affects both ASP and Javascript REALLY odd bug that I ran across in ASP 3.0. I have an input type of file, user clicks browse, then places his cursor in the...
8
omerbutt
by: omerbutt | last post by:
hi there i have a form with multiple input (type/text ) fields and three inputs(type/file) fields i have to submit the form via ajax because i have multiple forms on this page ,you can say it is a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.