Hii
Yes it is possible to upload and save to database in one page.
As mentioned by Matt, you can use the Form tag.
Also check for complete write permission on the folder where the file is been saved (only if the file which is to be uploaded is saved to some specific folder)
If the file uploaded is a .txt file. then using the fileObject you can read each string, get the values and insert in to the database.
Regards,
Soni
|