473,387 Members | 1,890 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,387 software developers and data experts.

Upload files using "browse" button only?

109 100+
Hi.. i am doing file upload using CGI perl scripts...

I want to allow the user to select the files using the "Browse" button only instead of typing the path name. How i do it?

Thanks.....
Aug 6 '07 #1
6 3083
skyy
109 100+
Hi.. i am doing file upload using CGI perl scripts...

I want to allow the user to select the files using the "Browse" button only instead of typing the path name. How i do it?

Thanks.....

Hi.. Any idea how to do it?

Is it possible to make the input text part to be readonly?

<input type=file name=datafile>
Aug 7 '07 #2
acoder
16,027 Expert Mod 8TB
One possibility is to use onkeydown or onkeypress and set it to false:
[HTML]<input type=file name=datafile onkeydown="return false;">[/HTML]
Aug 7 '07 #3
skyy
109 100+
One possibility is to use onkeydown or onkeypress and set it to false:
[HTML]<input type=file name=datafile onkeydown="return false;">[/HTML]
Hi thanks for the reply..

it works well with IE.. But doesnt work with mozilla... any idea?
Aug 7 '07 #4
acoder
16,027 Expert Mod 8TB
Hi thanks for the reply..

it works well with IE.. But doesnt work with mozilla... any idea?
It works fine on Firefox 2.0.0.6 on Windows. Show the full code.
Aug 7 '07 #5
skyy
109 100+
It works fine on Firefox 2.0.0.6 on Windows. Show the full code.
Hi thanks i found the problem...
Aug 8 '07 #6
acoder
16,027 Expert Mod 8TB
Hi thanks i found the problem...
Glad you got it working. Was there a problem in the code I gave you?
Aug 8 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
5
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
3
by: Olivier Verdin | last post by:
Hi, I am developing a multi-language application in ASP.NET in c#. I am using a file field html control to upload an image. I would like to change the text on the button "browse" that comes...
0
by: sreenulanka | last post by:
when i am clicking the browse button image not opened in my applet please help me. // browse button, generate browse event when it clicks if (e.getSource()==browse) { ...
4
by: developing | last post by:
Hi All, I have a browse button that the user can click to select a file. The button then fetches the file path. This is all working fine except my boss wants some add functionality. I need it to...
2
by: balakrishnan.dinesh | last post by:
hi frnds I have a query on browse button, In my page , i want to upload files , But i dont want normal <input type=fileto be used for this, so can anyone tell me anyother alternative solution...
1
by: daithi | last post by:
Hi This is a bit of mismatch but its more geared to the Java developer. I'm storing the file path from a browse button in Javascript but instead of locating a file I need it to locate a folder. Can...
1
by: balakrishnan.dinesh | last post by:
Hi frndz , I want to assgin value to <input type=file, without clicking browse button , And i know that it is readonly , But how it is possible in Firfox browsers ?.. Is there any...
4
by: shelendramalik | last post by:
how can be change fileupload browse button color in javascript. thanks shelendra malik
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.