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 6785461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:07:46+00:00 2026-05-26T17:07:46+00:00

In my site the user can upload two kind of files: documents (doc, pdf,

  • 0

In my site the user can upload two kind of files:

  • documents (doc, pdf, jpg, zip)
  • avatar image (jpg)

I started creating a private blob container.
So I can check that the user that is asking for a file have the rights to download it.

The problem arise when, in a page of the public part of the site, I have to show all the users avatar images.
In this case ther is no need to check anything but the avatar image are saved in the same blob container of the documents that is private.

So, the first solution was to create a simple action that receive the file name of the picture and then get it from the blob and push to the out stream.
But doing so I give to malicious users the ability to ask for reserved documents using this script. (simply asking for the document file name instead of the avatar image file)

What is the best solution?
Creation of two distinct blob container (one private and one public)?
Other solutions?

EDIT

Using metadata to mark public files?

  • 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-26T17:07:47+00:00Added an answer on May 26, 2026 at 5:07 pm

    I would suggest creating two different containers. Not only that, but I will also suggest that you do not just push avatars to the stream, but instead publush the full blob URL to the source. Thus you will be able to later use the CDN also! Using a “transparent proxy” action method makes non-sense for public blobs.
    As for the private blobs – I think your approach is good, but you’ll have to perform some security checks before serving the blob contents.

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

Sidebar

Related Questions

I have a web site which handles files management. User can upload file, add
I have an area on my site where a user can upload files to
I have an audio site where user can upload their music files , but
A user can upload a picture on my site at which point jQuery inserts
I have a web site with two routes. Basically the user can do one
here is a site http://www.lyrkjsw.gov.cn that can let the registered user to upload file
I have a feature on my site where a user can upload a background
So I have an HTML form where a user can upload an image. This
I'm creating a site in which user can upload his docs. Settings on server:
On my site, users can upload images that are displayed publicly. When the user

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.