Create folder in google drive and upload file REACTJS - reactjs

I am working on project using reactjs ,In that I want to access user's google drive and create my own folder
and upload file in it , Creating folder is not done by user ,it should be done automatically in backend ,I just ask to user for accessing google drive....
I am trying use of google drive API in reactjs but creating folder and uploading I am not getting
Can anyone help me out in this?
Thank you.....

Related

ASP.NET CORE with React Publish

I created a ASP.NET Core app with React as per the tutorial
https://learn.microsoft.com/en-us/visualstudio/javascript/tutorial-asp-net-core-with-react?view=vs-2022
When I try to publish the app, it creates in my project folder under obj\Release\net7.0\PubTmp\Out\wwwroot\ a copy of every single file on the entire drive where my project lies. And then I get errors that the files paths are too long because it is trying to copy stuff that is in the recycle bin.
enter image description here
Is there another way to publish this? Easy to publish the backEnd web API app, but how do I publish the FrontEnd

How to store the files uploaded from a website or a html?

Now I am creating a real digital library website. The website is required to store uploaded file in a database and receive it from the database. I have found a way to store the uploaded files in Google Cloud. May I know is there another way better than this?

How can I upload files to my S3 bucket from my React app without a backend?

I am creating a web app using React where the user can upload files to a folder in my S3 bucket. This folder will have a unique passcode name. The user (or someone else) can use this passcode to retrieve these files from the S3 folder. So basically there is no login/authentication system.
My current issue is how do I safely allow read/write access to my S3 bucket? Almost every tutorial stores the access keys to the client code which I read is very bad practice but I also don't want to create a backend for something this simple. Someone suggested presigned URLs but I have no idea how to set that up (do I use Lambda? IAMs?). I'm really new to AWS (and webdev in general). Does anyone have any pointers on what I could look into?
do I use Lambda? IAMs?
The setup and process if fully explained in AWS blog:
Uploading to Amazon S3 directly from a web or mobile application

NodeJS Bookshelf App tutorial create config.json file with content

I am following the NodeJS Bookshelf app tutorial on google cloud platform. It says we should create a config.json file in the nodejs-getting-started/2-structured-data directory and fill it with
{
"GCLOUD_PROJECT": "[YOUR_PROJECT_ID]",
"DATA_BACKEND": "cloudsql",
"MYSQL_USER": "nodejsapp",
"MYSQL_PASSWORD": "[YOUR_MYSQL_PASSWORD]",
"MYSQL_HOST": "[YOUR_MYSQL_HOST]"
}
I am using the cloud shell provided by google and I am having a hard time filling in the content. I have tried to open the .json off google's cloud to enter the content with sublime and it's not possible.
I followed this question
NodeJS BookShelf App OAuth 2.0 (Authenticating Users section) not working
and it's way ahead of where I am currently. Anyone worked on this tutorial before? How did you create the config.json file and fill in the content?

how to upload files in cpanel file manager via xmlapi

I developing an application which has static content builder for HTML pages. I am able to create ftp account and addondomain in cpanel via xmlapi but I dont know how to upload it in cpanel file manager. I want to know api1 or api2 syntax for file uploading in cpanel. Please help me. I am waiting for your response. I am using PHP for backend programing.
There should be an Upload button on the main toolbar (see here - http://blogerr.net/getting-started-with-file-manager-in-cpanel/ ). If you can't see it, you may need to reset your cPanel configuration...

Resources