Structure/ method for folder storage - database

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

Related

download entire folder from a storage service (firebase, S3,....) with react

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.

Adding local image in Jupyter SQL notebook

Started using Azure data studio and creating documentation for some SQL processes in our system.
As part of that I need to include a flow diagram in the document. Currently I have uploaded an image to a URL and am able to embed the image in document from the URL.
But is there any way to include an image from a local folder? Please assist.
I think this is what you want.
from IPython.display import Image
Image(filename='C:/your_path/your_image.PNG',width=200, height=100)
I was interested in this also. Syntax should be (if you store images in subfolder relative to notebook):
![ssms_subquery](images/16_ssms_subquery.png)
This didn't work for me initially: rendered as a broken image icon.
Things I tried:
Make sure you have a workspace defined for your root folder. Create the folder, then select "File > Add Folder to Workspace ..."
If that does nothing, try closing and restarting ADS. I've found the rendering to be flaky from time to time after awhile or if you have been opening/closing notebooks a lot.
Related topic has been discussed previously for markdown in general (but worth asking again for ADS!), eg. How to display local image in markdown

Check if a folder exist on client system in ReactJs

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.

Sencha cmd separate folder in build

I need to separate an folder in my application in another app.js build
generated by sencha cmd, this folder is being used by another applications and i need to have in web cache.
I read the documentation and I dont found nothing related to this
Exists another way to do this, without having to create a unique application for the specific folder ?

cakephp upload image to folder and store reference on database

In the cakephp 2.0 application i'm developing i will need a HABTM relationship between a table with "normal" data and one with stored images.
After a search, i came to conclude that the best way of implementing this was to store the images in the directory of the application, and in the table "images" a reference to the url of each image so that i can display them later on the application. Please, if you think this is not the best implementation please say so.
Looking into this, i would like to know how can i do this, i mean, how can i store the images on directory and store a reference in a database in the same function of a controller?
I did some searchs but i found only uploading to folders or only storing the images on database.
Thank you!
My FileStorage plugin https://github.com/burzum/FileStorage in combination with the https://github.com/CakeDC/Imagine plugin will exactly do what you want.
All file data is stored in the database, the files itself in the local file system or any of the other adapters. It's also handling generating versions of the image after upload.
Read the readme.md it is exactly doing what you want and I'm already using it in different projects, also for a gallery and user avatars.

Resources