I want to write php code to upload files to google drive and share link. I need to integrate this to my website. so users can upload files to google drive and once they uploaded I can receive file link.
is this possible? are there any github sources to start? I am seeking help to get right start. please advice if anyone has done this before?
I understand that you want to write a PHP code to get the file link from data uploaded to Drive. If that is true, then you should explore the Drive API PHP reference. You can see an example code in the Drive API quickstart and use it as a model.
To get the data from the uploaded file you can use get and read the variables webContentLink and/or webViewLink (for the download link and the view link, respectively). Please, remember to use * on the request parameter fields to receive all the data. Don't hesitate to ask me further questions to help you better.
Related
sorry if this is a stupid question; I'm still a student.
I'm trying to use Carnaux's nft marker creator (https://github.com/Carnaux/NFT-Marker-Creator), and upload it to my own server.
Basically I want a page that looks like this https://carnaux.github.io/NFT-Marker-Creator/#/ but on my own server.
I downloaded the files, but just uploading them to the server didn't work.
Do I have to use node.js? Any tips on how to configure that? Not sure where to start.
Edit:
Here's the link where I tried to upload the files to my test server
https://mar-test.000webhostapp.com/NFT-Creator-Web.html
You can upload an image, but not generate a marker.
I just downloaded the files from github by clicking the green "code" button and selecting "download zip", and then uploaded everything to the test server.
Seems like part of my problem is that I don't know how to use github to fork a repository. But shouldn't it work just by uploading the files to the server like this?
Currently, I am trying to create API so that, I will upload a test file to specific folder in SharePoint by using JavaScript with the help of REST API. But hard luck. Please let know any solution and suggestions.
you can check this resource.Using jquery
I want to create a website to share files to a WhatsApp chat.
This should be possible in chrome by using the Web Share API https://developers.google.com/web/updates/2019/05/web-share-files The demo in the description works but only with files uploaded with the form. In my case, the files are already on the server.
Has anyone done this before and can help me with the code?
Thanks!
Daniel
I am setting up a file viewer to work with another web application, and to make it more user friendly instead of making the user download and upload the file themselves, i want to pass the download link to upload(if anyone has experience with alfresco and know how to get the file itself please tell me), is there any way to do that?
You might want to take a look at the Alfresco REST API. Specifically, getNodeContent allows you to get the content on a node.
This API requires Alfresco 5.2 or higher. If you are using an older version, please specify.
I have a single HTML document that contains Javascript, CSS, HTML. I have no resources so I do not need any of those files. I have tried hosting it by putting the file in google drive, and doing it that way, but it did not work. Is it possible to do this or do I need to change my format.
If you are asking how to host your website - you need a server. You can't do this with google drive. Drop box did let you do this but i think the service was stopped. There are plenty of free options, You would need to sign up for a free account and then upload your html file. They would give you a URL, or you could attach a custom domain that you buy.
A service such as this is:
https://www.netlify.com/
Quick start:
https://www.netlify.com/docs/