I need to maintain a file system in mongo where I need directories to be created and file should be placed in the directory which i have created. So is there any in built functionality in python or how we can do that using GridFs?. So basically along with uploading the file i need to mention the directory where it needs to be placed
Is there a method available to store a file in mongo under a specific directory
173 views Asked by shyam sundar At
1
There are 1 answers
Related Questions in PYMONGO
- SSL Certificate Verification Error When Scraping Website and Inserting Data into MongoDB
- MongoDB get limited, evenly spaced documents within date range
- Can I update two documents with different _id using update_many?
- Getting Below Kubernites Pod restart Problem with pymongo lib
- An error occurred: 'NoneType' object has no attribute 'blogs'
- Telegram bot (python_telegram_bot). Adding and removing a user from the database, while logging in and out of telegram group chat
- no such item for cursor instance
- MongoDB query returning inconsistent results with mongoengine
- Removing mongodb document by its _id without using ObjectId
- MongoDB connection with Motor driver to discord.py bot
- Is it practical to use pymongo as JSON search tool?
- PyMongo duplicate key error even set upsert True
- Pymongo vector search
- Use Mongo $text search in limited set
- MongoDB BEanie ODM - Get all Documents linked to a Document
Related Questions in GRIDFS
- How can I fix Multer Gridfs Storage error "Error creating storage engine. At least one of url or db option must be provided"?
- How to test a Spring method for adding a file to GridFS with JUnit and Mockito?
- Mongoose and GridFS : File upload fails (TypeError: Cannot read properties of undefined (reading '_id'))
- Problem deleting documents using GridFSBucket in MongoDB with Node.js
- Concurrent usage of golang mongo's gridsf driver
- Saving audio data using GridFS
- Uploading audio to mongoDB using GridFS
- Getting audio duration on the server and passing it to the client
- How to make @fastify/mongodb plugin TS compatible with Mongo GridFS?
- Getting Error to download specific parts of a video file stored in GridFS as chunks
- Getting audio from GridFS and playing it in Next.JS
- Unauthorized MongoDB User: Not Authorized to Execute ‘find’ Command on ‘admin’ Database
- Stream the Video Downloaded from MongoDB's GridFS on react-native-video
- Gridfs bucket and collection issue
- Gridfs file retrieval does not send the file back
Related Questions in MULTER-GRIDFS-STORAGE
- How can I fix Multer Gridfs Storage error "Error creating storage engine. At least one of url or db option must be provided"?
- Node Socket_CONNECTION_TIMEOUT
- Multer is not uploading image from React
- Multer is Not adding/showing image in public/assests when hosted
- Stream the Video Downloaded from MongoDB's GridFS on react-native-video
- mongoose - multer - multer-gridfs-storage: The database connection must be open to store files
- Gridfs file retrieval does not send the file back
- Error with the _id property in GridFS storage in mongoDB while uploading files
- Running `npm install` changes installed multer version
- multer-gridfs error " TypeError: Cannot read properties of undefined (reading '_id') "
- Getting a 500 error when send a post request from my React app using Multer
- How to handle "MongoServerError" which is causing server crash
- How do I solve gridFS TypeError: Cannot read properties of undefined (reading '_id') [0] at GridFSBucketWriteStream.emitFile
- Failling to read properties of the file after saving it in mongoDb
- How to upload a picture to mongodb through grid fs storage and multer, file is not getting passed to the callback function from the middleware
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
GridFS permits specifying the name of the file. You can put anything you like in there including a path where components are separated by slashes so that it looks like a filesystem path.
However, GridFS does not provide any facilities for hierarchical traversal of stored files (i.e. grouping files into directories). You'd have to implement that in your own application/library if you need this functionality.