Error in File upload in EDIT

A place for users and developers of the Xataface to discuss and receive support.

Error in File upload in EDIT

Postby muzafar » Mon Jan 16, 2012 12:20 am

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
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: Error in File upload in EDIT

Postby shannah » Mon Jan 16, 2012 11:48 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error in File upload in EDIT

Postby muzafar » Tue Jan 17, 2012 12:42 am

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
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: Error in File upload in EDIT

Postby shannah » Tue Jan 17, 2012 12:21 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 29 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved