Quote:
Originally Posted by bdl
Technically, you can't. JavaScript cannot access local files on the filesystem as a security measure. You can, however, use a method that utilizes Flash or an IFRAME element to approximate an "Ajax file upload". There are dozens if not hundreds of good tutorials, examples and frameworks online for this. Please do a basic Google search.
|
Hello sir...
sorry i dont know whether this question related to this site or not
i have uploaded as u said...
the problem is that when i am doing other operation like save or edit,
i am using a java servlet to the database operation after completion of operation i am redirecting to one jsp.
Actually i need to perform save two types of data....
1. a plain text or 2. a uploaded file like image
it is working fine when i am using plain text and not uploading anything ..and redirecting to a jsp.
But it is not working fine after uploading using this ajax and iframe.All database operations are happening except this redirect operation, can u please tell me the solution .........
or atleast where can i find solution for this type of uploading