Jump to content

Zipped Folder Attachment


spencer9772

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.