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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:48:16+00:00 2026-06-13T19:48:16+00:00

I need to store some files in my Mongo database and came across these

  • 0

I need to store some files in my Mongo database and came across these two questions:

  1. I do not care about the names of these files, I’ll be addressing them by their unique mongo id. the Mongo db driver by default adds the filename as it is adding the content of it to the database and I believe it creates an index on it as well. Is there a way to tell it don’t bother about the name of the file?

  2. If all I’m adding to the database are images of type JPEG (same content type), do I gain any advantages by using the Symfony’s mongo ODM as described here

Wasn’t sure if I needed to create two separate questions since they are quite different questions, but answers or ideas about either of these questions will be appreciated.

  • 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-13T19:48:17+00:00Added an answer on June 13, 2026 at 7:48 pm

    Hereby my ideas regarding your questions:

    1. I think there isn’t a way to tell the MongoDB driver to ignore the filename when storing a file to GridFS. I just run a short test and the filename will always be stored within the document. What I did find out is that there will be no index created for the filename by default. This can be checked by running ‘db.Upload.files.getIndexes()’ in the mongo shell to see which indexes are created on the collection.

    2. I don’t think there is a limitation on what type of files or even file sizes you’re storing. Although GridFS is a storage specification for large objects it look likes there isn’t any restrictions to use it for, lets say, many small JPEG files. A small example of an advantage in using it with Symfony and Mongo ODM will be that it’s very easy to add ACL functionality when requesting an uploaded file.

    Hopefully this will answer your questions.

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

Sidebar

Related Questions

I need to store some data files for my blackberry app. These are usually
I need to store various info about some movies, books, games, and maybe other
Hey. I need to upload some files (images/pdf/pp) to my SQLS Database and thereafter,
I have some large files (images and video) which I need to store in
I need to use Server.MapPath() to combine some files path that I store in
I need to store some temporary files from my program sometimes, currently I use
I'm developing a Class Library / API and I need to store some global
I am creating a windows phone application, which need to store some data in
I need a field to store some information after one asp button click for
I want to store some data during my site viewing. Sometime i need to

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.