473,406 Members | 2,377 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,406 software developers and data experts.

file tag problem??????????

dmjpro
2,476 2GB
i have <input name = "" type = file>

the page shows the file upload control but can't i assign the intial value to be shown in the text box of the file upload control



thanx in advance
Feb 13 '07 #1
5 1119
mrhoo
428 256MB
input type=file is read only.
Feb 13 '07 #2
acoder
16,027 Expert Mod 8TB
This is not supported by most browsers. Read here.
Feb 13 '07 #3
dmjpro
2,476 2GB
thanx for ur reply

i understand that for security reasons it is not allowed
but can anyone tell me ....
the text box which appeared is not readonly if user enters manually instead of selecting the file without browsing ...
then what is the security.....


again thanx in advance
Feb 14 '07 #4
dmjpro
2,476 2GB
finally i managed to do so ..

i tried the code ...


<input type = file name = "" onkeypress = "return false" onkeydown = "return false" onkeyup = "return false">

that stops the user to enter the file location manually ..
only user can enter the file name by browsing
Feb 14 '07 #5
acoder
16,027 Expert Mod 8TB
I misunderstood your problem. Yes, that was asked earlier. Just to clarify, the reason why most browsers don't allow an initial value is that if you can set it, it is easy to submit the form on body load which poses a security risk.
Feb 14 '07 #6

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

Similar topics

9
by: Eric | last post by:
Problem: -------- I'm trying to create an executable jar file. I can do so as long as I don't use the "package" statement in my source code. Once I put the package statement in I can't execute...
1
by: Jonathan | last post by:
Hi everyone, I have a problem with the file uploading in Asp.Net and I have read a lot on forums on this but never found an answer. Here is the problem: I know Asp.Net maximum Length for...
6
by: alan | last post by:
Dear all, I have written my own function by C. And my development platform is W2k with VC6.0. Then I also defined a header file to extern declare this function. After that, I include this...
2
by: Federico Bari | last post by:
I have the necessity to send an xml file to a CGI application using the https protocol (then the CGI application have to store the datas of the xml file in a mySQL database). I saw the useful...
3
by: savvy | last post by:
I'm using "Visual Studio 2005 Professional". I'm half way through in my project development. I've created a New Website in the Visual Studio 2005 and developing my project over there. When i wanted...
0
by: saytri | last post by:
I have a problem, where when a user enters a questions to be written on a binary file it is overwriting it on an other question that is stored in the binary file. Can someone pls tell me if there is...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I cut and paste the following code from msdn help page which it just introduces view and multiview server controls. Here is what I do: in vs studio 2005, File --New Web Site, it...
0
by: raylopez99 | last post by:
I have a minor problem locating an image file to load as a Bitmap. A resource file "NudeSusan.jpeg" (which I think is actually a bmp file, originally taken from a jpeg of model Susan Spears) is...
4
by: Salad | last post by:
I have a situation where some, not all, users get the message "Couldn't find file "F:\AccessApps\AppName.mdw". This file is required for startup". My app the users are attempting to access is...
0
by: valdas | last post by:
Hi, I have a problem in accessing "sqlServerCatalogNameOverwrites" section in app.config file. <configuration> <configSections> <section name="sqlServerCatalogNameOverwrites" ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.