Hello,
I am using the Upload Files function and the document is saved to the correct folder, etc. It does everything I need done except one thing. Is there a way to allow the user that uploaded it to delete the document from the folder that it was saved to?
Thanks
Can anyone assist? Thanks
Hi,
This will be tricky, you can simply update the file name associated with your user in the database but leave the file on the disk intact, or get the file name before its updated and delete it using "unlink" function.
<?php
$path = "FULL PATH HERE";
unlink($path.'file_name');
?>
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Thank you all. I have the path in place and called the file that needs to be unlinked. I tried using curly brackets for the called field/file name but no luck. How would I populate 'file_name' with the a particular file within the UNLINK section?
Thanks again.
PRESTO!!!
Thank you guys so much!
sorry if this is offtopic to this section, but this is the nearest I could find:
is it possible to save uploaded files do a database so that users can review/change them(with DB record loader) at a later date?
Upload to a folder works fine, but I would also need to have a database record of it.