Pure ASP Upload 3 Support Product Page

PAU3 and Update Record Behavior

Asked 18 Jun 2013 16:03:42
1
has this question
18 Jun 2013 16:03:42 Babis Tsokas posted:
I'm using the PAU3 and the DW (CS6) Update Record Behavior in a form with also other fields and I need to know the size of the uploaded file.
I create a hidden form field with the following value: <%= pau.Fields("FileField".Size %> exactly the same as in the insert record page.
If I'd like to update some other fields but not change the uploaded file, the hidden form field value remains empty and change the database "FileSize" field with blank. If I'm not using the file size hidden field and I need to change the uploaded file, the size of the old file remains in the database.
How can solve the above issue?

Replies

Replied 19 Jun 2013 09:17:42
19 Jun 2013 09:17:42 Teodor Kuduschiev replied:
Hello,

In order to keep the file during the update record you need to use the file binding from your database as a value in the file field.
Replied 19 Jun 2013 09:32:24
19 Jun 2013 09:32:24 Babis Tsokas replied:
Teo thank you for your reply.

Unfortunately my problem isn't the file, because I use the file binding from my database as a value in the file field, as you already said. My problem is the File Size field that if I 'don't upload any new file during update, but only change other form fields, remains empty and updates the database with a blank value. Any ideas about it?

Reply to this topic