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

  • Home
  • SEARCH
  • 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 6162541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:40:19+00:00 2026-05-23T21:40:19+00:00

I am allowing users to upload documents to the server. However, i don’t want

  • 0

I am allowing users to upload documents to the server. However, i don’t want them to obviously see where the files are being stored. What can i do that will allow them to still get the file but without seeing the file location.

  • 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-05-23T21:40:20+00:00Added an answer on May 23, 2026 at 9:40 pm

    You can use a PHP query to accomplish this, lets say you use the following URL:

    http://mysite.com/files.php?file=xyz.pdf
    

    In files.php you can check the get variable file and have a hard coded function that retrieves the file. You can do this many ways one by using headers to force a download or read the file into a var and print it’s contents to the page. For say like a pdf reading the file and printing it to the page is the same as linking it to the file.

    warning though: like with using headers do not print anything to the page except the file. I also recommend declairing you headers still if you read the file and print it so that the end user will not get the gobbly goop that is the source of the file i.e. jpg or pdf.

    Oh no, I forgot a header warning, I have been running into a header problem ever since Adobe made the ISO for PDF’s open source, depending on the application that produced the PDF and the browser from which the user is uploading the PDF from, the header will be anything from:

    'application/pdf', 'application/x-download','application/octet-stream','application/octet','binary/octet-stream'
    

    so be careful hard coding the upload section to a header type, I know this question is about downloads but i just thought i would throw that in there. Also using headers for downloads doesn’t matter I would simply use the standard application/pdf there.

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

Sidebar

Related Questions

I am currently allowing users to upload CSV files, processing them, saving database entries
I'm allowing authenticated users to upload image files with my PHP application. Assume I've
I've been tasked with allowing users to upload files to a webpage, and then
I'm thinking of allowing users to upload files via email to an app on
So we were going to make a website allowing users to upload video. The
I am developing a website, where I am allowing users to upload videos, but
In my application I am allowing users to upload their css style sheets so
What is a good file size limit to use when allowing users to upload
I am allowing users to download a file from another server just by giving
I'm considering allowing users to input JavaScript in web pages and letting them share

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.