Pure PHP Upload 2 Support Product Page

This topic was archived

Changing Image using update page

Asked 29 Apr 2005 11:07:06
1
has this question
29 Apr 2005 11:07:06 Andrew Hofer-Villiers posted:
I have followed the details in the FAQ page as below, but I am having problems passing the record ID to the seperate page for uploading the image only. I have even put the record ID in the image upload page, but it keeps returning the default setting (ie 1). How can I pass the record ID from the update detail page to the image upload page, so that the image get applied to the correct record?

"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()"

Edited by - hofer1 on 29 Apr 2005 15:54:25

Replies

Replied 18 May 2005 20:58:32
18 May 2005 20:58:32 lawrie rob replied:
Hi,
Not sure why it's not possibleto have a file upload on the update page ( I thought it was possible to set to not require a file) but anyway, what you do is:
Add the open browser window behaviour to the button (or any link)and link to the page that contains the file upload. You *also* set the URL parameters on the link to the id of the recordset as you would on any link to a detail page. On the image upload page add a recordeset filtered by the 'id'

good luck

lawrie

Reply to this topic