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? Quote Link to comment https://forums.phpfreaks.com/topic/292980-zipped-folder-attachment/ Share on other sites More sharing options...
Solution CroNiX Posted December 9, 2014 Solution Share Posted December 9, 2014 (edited) 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. Edited December 9, 2014 by CroNiX Quote Link to comment https://forums.phpfreaks.com/topic/292980-zipped-folder-attachment/#findComment-1499099 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.