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

Custom input file ?

Hi,

I would like to use input type file, but i would like to put any file in it
when i go on the page for example when user go back after try to submit

imagine any form to fill for send information...but after the user
validate....one on the fields is bad...then the user must be correct this
field.....But i don't want another fields are empty. The user must just
correct one fields and keep another fields
any idea ?
Jul 20 '05 #1
3 2811
deemoox wrote:
Hi,

I would like to use input type file, but i would like to put any file in
it when i go on the page for example when user go back after try to submit

imagine any form to fill for send information...but after the user
validate....one on the fields is bad...then the user must be correct this
field.....But i don't want another fields are empty. The user must just
correct one fields and keep another fields
any idea ?


Yes.

If you, some author of some webpage, were allowed to add random files to the
upload, why not add all kind of files on the client's system?
And send them to your server without that person's approval.

So it is a securityprecaution.
The uploadfunctionality is crippled on purpose.
I expect all serious browsers to stop javascript from adding files to the
upload.

I think you have to look at a workaround.
Maybe let the user upload files AFTER all the other data is checked?

Good luck,
Erwin Moller
Jul 20 '05 #2
thanks, but you make my cry..... i think there are no really good solution
to my problem..... sic :-(

"Erwin Moller"
<si******************************************@spam yourself.com> a écrit dans
le message de news:40*********************@news.xs4all.nl...
deemoox wrote:
Hi,

I would like to use input type file, but i would like to put any file in
it when i go on the page for example when user go back after try to submit
imagine any form to fill for send information...but after the user
validate....one on the fields is bad...then the user must be correct this field.....But i don't want another fields are empty. The user must just
correct one fields and keep another fields
any idea ?
Yes.

If you, some author of some webpage, were allowed to add random files to

the upload, why not add all kind of files on the client's system?
And send them to your server without that person's approval.

So it is a securityprecaution.
The uploadfunctionality is crippled on purpose.
I expect all serious browsers to stop javascript from adding files to the
upload.

I think you have to look at a workaround.
Maybe let the user upload files AFTER all the other data is checked?

Good luck,
Erwin Moller

Jul 20 '05 #3
deemoox wrote:
thanks, but you make my cry..... i think there are no really good solution
to my problem..... sic :-(

Of course there are other solutions!
There are always other solution.

You could eg store the current state (old form-info) in hidden variables in
the screen with the upload-element.
so:
1) your first part checks all the forminfo.
If it is not okay, return it to the user and ask him/her to correct it.
2) when you are satisfied with all the data, offer the upload, and send all
the other info too as hidden variables.
You don't even have to change the receiving script that way, only add a
checkingscript before it that produces the uploadform when all is accepted.

Maybe I am missing some crucial point over here, not sure.

just my 2 cents.

Regards,
Erwin Moller
Jul 20 '05 #4

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

Similar topics

3
by: Gordon Watts | last post by:
Hi there, I've got a special header file which I run an small external program over to produce a .cpp file that I want to have my project build. The special header file includes a second header...
3
by: __PPS__ | last post by:
Hello, I'm newbe to xml/dtd (and probably I don't use all the termins correctly). I'm writing an application that parses xhtml file with custom elements and splits it into 2 parts - valid xhtml1.0...
19
by: laurenq uantrell | last post by:
I'm using Access 2K. I'm hoping someone can tell me which method performs faster- (currently I'm using a mix of both methods) a.) creating custom properties and then calling functions to set and...
1
by: Craig | last post by:
I have added a 'Textboxes (A)' to my UI installer project along with a custom action to pass the value back to a class I've written to override the void Install function. As long as the text is...
6
by: Shimon Sim | last post by:
Hi I am working on application that need to hold custom user information - Last and first name, email, some other domain related information. I used to create Base class for all my pages. The base...
2
by: Raf256 | last post by:
Hello, my custom streambuf works fine with output via << and with input via .get() but fails to input via >> or getline... any idea why? -------------------- A custom stream buffer (for...
1
by: rn5a | last post by:
I have created a custom control button which when clicked displays a message in the JavaScript alert dialog. I could successfully compile the VB class file into a DLL & also could add it to the...
0
odyth
by: odyth | last post by:
not sure if anyone is having trouble with this, but the same thing happened to me. i have one text box in a custom dialog in my installer that would take the path to a database, if there was a space...
30
by: Tarique | last post by:
I have tried to write my custom scanf function on the lines of minprintf provided in K&R2.In the function myscanf() i access memory directly using the address passed to the function .Can it be...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.