hi,
i need to upload a file from client to server.. for that i am using the <input type="file"> tag..after browsing i am successful in uploading a file..
but...
my requirement is i want to upload a default file from clients hd without browsing and submitting the form.Simply put, that is not possible. You may as well make omelets without breaking any eggs.
Kevinwouldnt that be a potential security riskanyway? Uploading files from the client, w/o their knowledge?wouldnt that be a potential security riskanyway? Uploading files from the client, w/o their knowledge?
Absolutely! From everything that I've read, most browsers (mainstream) will not permit the server to select a file for upload, hence the 'browse' feature.
The exception to this of course is 'cookies'.
i need to upload a file from client to server.. for that i am using the <input type="file"> tag..after browsing i am successful in uploading a file..
but...
my requirement is i want to upload a default file from clients hd without browsing and submitting the form.Simply put, that is not possible. You may as well make omelets without breaking any eggs.
Kevinwouldnt that be a potential security riskanyway? Uploading files from the client, w/o their knowledge?wouldnt that be a potential security riskanyway? Uploading files from the client, w/o their knowledge?
Absolutely! From everything that I've read, most browsers (mainstream) will not permit the server to select a file for upload, hence the 'browse' feature.
The exception to this of course is 'cookies'.