I have a React app where I need to upload files (pdf files for example), and store them under distinctive folders,
What I need to know, is if there is a way to download or get download link for an entire folder X,
I tried with firebase, but it only offers to get link of a single file at a time, not full folder, does S3, or something else have this option?
Thanks.
Related
I'm building a music player in React, where I can upload mp3 files to my library. I know React and browsers in general doesn't have access to the file path, so I decided to upload them via multer to a folder on the server, and data like filenames and ID3 tags goes into database. I would really like to load them from their original location, without having to copy any files. Is there any workaround I could try?
Is anyone aware of what method / structure does google drive use to upload a whole folder?
And how to use the same method with git push for uploading that folder in a similar way as github does.
1- Storing folder as a zip and unzipping and showing it on.the client side would be inefficient i think.
2- Creating a new row for each file and storing it along with the path and then getting all the rowa related to the path is also a very inefficient approach.
Thanks in advance.
Git is a version control system and GitHub is a place to store your project which you use Git. Let's give an example. GitHub is like Instagram but for code commits not for photos. So all other developers can see/fetch/push/comment on those commits. It's not like Google Drive. Google Drive is a "file storage".
If you want to push (upload) a folder or a .zip file, first you need to commit it with Git and later push it to GitHub. Don't forget to create a repository on GitHub first and remember to set it as "private" if you need.
I suggest you read this e-book: https://git-scm.com/book/en/v2
So, I have a project in Reactjs where in I am getting some String data from JSON . and I am writing it to a file. Now I want to save this file in a folder on client side.
So is there a way to create a folder (for the first time execution) and check if a folder already exist on system. and save file on that folder?
I tried and searched a lot but couldn't find anything useful. I can save the file in downloads folder but I don't want that, I want my custom folder.
Thankyou.
In my AngularJS application I need to store the images that a user choose from his device, in the application folder.
Only the device used to choose the image has to see it.
So I will save in the backend only the path of this image.
I tried to search how to move or copy an image in a folder, but I haven't found any solution.
How should I do this?
Is it possible to download html files and images from a server and store them in the same disk location as the html file doing the downloading?
I need to do this because I have an app that is a database of HTML files and these files change from time to time. When updates occur, it would be good if the HTML5 app prompted the user to do an update and if accepted, the file were downloaded and replaced the old file set.
The app has to work offline, hence the need to download the data.
In most browsers, yes. Read about the cache manifest http://diveintohtml5.ep.io/offline.html