Please help~! How to do download, upload file?

batmon 19 Mar, 2009
Hi,

I follow the steps in "add file upload form" Tutorial page to setup my ChronoForm and it works great. User can submit with a file upload.

http://www.chronoengine.com/downloads/file/82-.html#6%20Adding%20file%20upload%20to%20a%20form.pdf

Now, I want to use ChronoConnectivity to list out all files that's been uploaded. I am able to create a table list to show all files been uploaded to the system. Now I want to provider two functions:

1) a download click for each entry to download the file.
2) a upload click for each entry to upload and replace the file.

For #1, I don't really want to create a link with the full path /var/www/prdca/components/com_chronocontact/uploads/FormName/xxxx. Is there a better way to do this, somehow hide the path from the users when they are downloading the file?

For #2, I just don't know how to do this in ChronoConnectivity. Please help.

Thank you.
batmon 20 Mar, 2009
Hello,

Any idea? FYI, I tried using the "edit" feature to upload the file but it is not working. CC accepted the edit but the file is not uploaded. This is what I did:

In Gerneral -> body, I add {edit_record} for each record so user can choose to edit the record.
In "front Permission", I add the following code for user to upload the file

File Upload: <input size="20" id="file_5" name="file_5" type="file">


When try, it looks like it work. However, when I check the upload folder, the file is not upload/replaced.

Please help, thank you.
This topic is locked and no more replies can be posted.