spencer9772 Posted December 9, 2014 Share Posted December 9, 2014 Hi guys so for my website I want to add a feature where a user can upload a zipped folder and send that folder to another user through my Private message system, so I am wondering how this would work, would I need to upload the folder to my database, upload it to a separate folder and use some php code to display a download link to download it? Link to comment https://forums.phpfreaks.com/topic/292980-zipped-folder-attachment/ Share on other sites More sharing options...
CroNiX Posted December 9, 2014 Share Posted December 9, 2014 Upload File File gets saved in filesystem (files go on filesystem, data goes in database) Save path to file (including filename) in database along with the user ID of the person who can access it When a user is on system, check database using their ID and see if there are any files for them If so, provide link to user to download based on path saved in database User clicks link, system sends file Delete file and remove entry from database, if applicable. Link to comment https://forums.phpfreaks.com/topic/292980-zipped-folder-attachment/#findComment-1499099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.