Jump to content

Zipped Folder Attachment


spencer9772
Go to solution Solved by CroNiX,

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
Share on other sites

  • Solution

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 by CroNiX
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.