Page 1 of 1

Error in File upload in EDIT

PostPosted: Mon Jan 16, 2012 12:20 am
by muzafar
Greetings,

I have table, in which i have mandatory fields for uploading files. it is working fine while inserting new record. but when i am edit that specific record which i inserted before and the uploaded files are already attached with it in edit form of the table, but when i press save in edit form, it is giving the error of file file is empty, even i have path/value in the database for the uploaded field. like we have value for other fields like textfield, which is value="<?=$row['txt_value']?>", but how can we have for uploaded file fields? the file is already attached coming from the database along with the delete cross sign, but it is still giving the file field empty error.

Kindly lead me.

Your help will be greatly appreciated.

Thanks

Re: Error in File upload in EDIT

PostPosted: Mon Jan 16, 2012 11:48 am
by shannah
What is the nature of this file field empty error? Is it a javascript error? Do you see it as a popup window or in a log file? When does it occur; when you click submit, or after the page reloads and you want to look at the file?

-Steve

Re: Error in File upload in EDIT

PostPosted: Tue Jan 17, 2012 12:42 am
by muzafar
Dear shannah,

you can reproduce this error like this,

Create two fields table in database, one for text field and other for file field make both of them as mandatory fields. Insert something in it through xataface environment, after insertion, try to edit the record which you inserted a while ago. Edit only the text field now, and leave the file upload field as it is and press save/submit button, it will give you an error at the top of the form that file upload field is empty, even the value is in the database for the file field and is show at the top of the file field along with the delete cross icon and we just want to update/edit the textfield not the file field. so it should not generate the file is empty or missing error. I hope you have got an idea of what i mean.

Thanks

Re: Error in File upload in EDIT

PostPosted: Tue Jan 17, 2012 12:21 pm
by shannah
Ah.. I see. I have posted a bug report for this and hopefully it will be fixed for a future release.

http://bugs.weblite.ca/view.php?id=925