Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:14:11+00:00 2026-06-05T01:14:11+00:00

I have a question about how the upload and download system works with php

  • 0

I have a question about how the upload and download system works with php and mysql.

I would like to be able to upload files (preferably through my webpage) so that only a specific user can view available files sorted in some catagories and download the ones he/she wants.

I feel really stupid asking this but where is the files then saved? Inside a table? Or does the table point to a directory in my webserver?

I’m asking this as I really want to learn this but even the basic questions can be difficult even to formulate let alone solve… 🙂

Looking forward for some input

Cheers
Adam

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:14:12+00:00Added an answer on June 5, 2026 at 1:14 am

    The PHP file upload is actually a two step process(if you want to save it to a desired path). The $_FILES variable has all the details when you try to upload a file, which includes, Name, type, size and temp_name. The temp_name actually contains the temporary path of the file. You can then make use of move_uploaded_file function to move the file to whatever path you want to.

    About saving in the database, once you are able to successfully move the file to the desired location, you can update your database. I would suggest, it would be better to have a table just for files names and id and I am assuming you might have a table for users as well. You can then have a new table which can map user id and file ids. That would give you ability to share access among users. Of course there are others ways to do it as well. I think this might be a simple implementation.

    Also I just realized, that you might want want to look at a simple file upload example. You can refer to this link

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about selecting selectboxes with Javascript. I have upload the files
I have a question about the $_FILES global variable in php. When I do
I have a web-app that allows users to upload and download image files by
I have a little question .. I am using blob to upload my files
I have question about normalization. Suppose I have an applications dealing with songs. First
I have question about interpreting strings as packed binary data in C++. In python,
i have question about YAJLiOS parser... I have next json data : {{ body
I have a question about whether or not a specific way of applying of
I have a question about django content_types In the example of filtering a QuerySet
I have a question about SQL Server indexes. I'm not a DBA and assume

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.