Reupload and Update Record
Question:
I've a problem... I've a detail page with a pic uploaded with Pure PHP Upload... all works, but... when I update my details and I don't update the pic... the pic is not show on the details... Ive tried to set a default value with command value="<?php etc etc etc ?>" but it don't works.
I've a problem... I've a detail page with a pic uploaded with Pure PHP Upload... all works, but... when I update my details and I don't update the pic... the pic is not show on the details... Ive tried to set a default value with command value="<?php etc etc etc ?>" but it don't works.
Answer:
You should provide a separate page for updating records only, and a different page for reuploading the file. If you put it all on one page then the file is required.
We might try the sollution that we have on DMXzone for uploading extensions:
Make Update Detail page - that updates only the normal record fields and does not do any file upload
On this page where there was the file field - place a button "Upload New File". Add behavior "Open Browser Window" on the onClick
On this event open a different page that uploads file only
Use an empty page for redirect, to close the popup window - just empty html and on the body add: onload="window.close()"
Comments
Update record with file field
Is this a DWMX undocumented feature ??
I have a similar problems with this. I created a form for updating a record with a file name in it. I try to fill the file field with the allready existing value from the database into this file field, and the value just won't show up.
any idea ??
You must me logged in to write a comment.