I'm experimenting with the google cloud platform, and the app engine. I have published a relatively simple website with a cms attached, part of which allows a user to upload images. As there doesn't seem to be a way to FTP to the site, or manage files like that, is there a "google cloud" way of managing these particular files? The user would need to be able to upload files, and see what files have already been uploaded (it doesn't seem like a complex requirement, but I can't see how one would manage it with the app engine)
Related
I have made a python code that automates a process inside my work using drive and spreadsheets API , now i want to share this tool with my mates, but them does not know anything about programming, so my question is, how can I share the app to be used by any user as a third party app.
Since you tagged google api so i assume you are working on google sheets, if so you can create json credentials file here for them as you did for yourself at google cloud console. Each json has email address that you can share the googlesheet with and they can access google sheet using json key and your application.
I want to build a system that would allow users to POST videos to their YouTube channel after they are logged in with the google account to my website. The video will be published on the website.
After that, I also need that the users could comment on the videos that showed on my website, and on YouTube.
After that, I need that the user's profile pictures will be uploaded to their own Google Drive.
Tasks:
Upload Videos to the website with Youtube (Youtube Video API).
Comment on videos on the website (Youtube Comments API).
Upload profile picture to Google Drive (Google Drive API).
I don't know where to start, and how to do that any user "Hosts" itself, for example, he can add videos, comments, and host his profile picture.
Using Django with Python3
Welcome to Stackoverflow! I hope you have a great time here. I have to warn you, however, that the question you are asking is off the site's guidelines. You should limit the scope of your question to one single problem that are you are facing. I suggest you read more about this here.
I recommend you to tackle one of the tasks first (such as the Google Drive one). You can follow this comprehensive quickstart provided by Google itself, which will allow you to write a script that lists the files on your Google Drive instance. Afterwards, you may try to upload files (your profile pictures) to it, following this piece of documentation which also includes Python examples.
Further to that, I also recommend that you check out the following links:
This explanation about how OAuth2 works, and more specifically with Google APIs.
Documentation on how to use the Google API Client library for Python.
Django social auth, a plugin for Django that allows your users to log into your platform using their Google credentials.
I hope this is useful to you and that you manage to build a great application.
I have a decoupled applications build with Django 2, an API with DRF and an Angular 6 frontend application. I want to enable users to upload photos for their profiles, and probably in the future some pdfs, and after some research I figured out that the most convenient thing to do would be to store these files in an Amazon S3 bucket.
I have found numerous resources about how to upload files to an S3 bucket on both, Angular and Django, and now I was wondering what would be the best approach to do this in my decoupled application: should I manage it on the frontend and not use my backend at all? or should I pass the file from my angular to my Django app and then upload it to the bucket from there?
Some pros and cons of both approaches? It's my first time doing this and I haven't been able to find many resources for decoupled applications.
Any help is welcome! thanks!
The best practice
Anything related to data must be managed by your backend i.e Django, Angular is just a client.
You should pass the file from angular to Django app and then upload it
to the s3 bucket from there
Cons using client
Suppose in future, if you will develop mobile apps to consume your rest APIs then you need to rewrite the whole management there also.
You have to keep your s3 bucket API keys on the client and it is easily accessible to hackers.
dist folder size will be going to increase that will affect the load time of your site
If you are uploading files from client to S3 bucket, it will use the user's internet and in most of the cases it is slower than your sever's internet
I'm writing Windows C++ application that gives user ability to save some work results directly to cloud storage like Google Drive, Dropbox and OneDrive. I've been able to create working implementation of code that uses OAuth2 and REST API to authenticate user and upload files (with CppRestSDK help).
Now i've been searching for ability to do the same with iCloud Drive service. So far i've seen that for all (?) iCloud based services Apple gives CloudKit SDK to work with them. But this SDK is available ony for XCode and there is some web version for JavaScript.
My question is simple - is there any way to upload files to iCloud Drive from Windows C++ application?
HiI want users to be able to upload their own photos from the browser, but I read that it isn't safe to let them upload files to your server without many protections. I need a image hosting website that has an easy API for uploading photos (for free).
The only one I have found is Cloudinary, which is awesome, but following their tutorial didn't work. I guess the reason is it's outdated, and I'm using Django 1.10...
If there is a way of doing so, even without a special API, (by sending requests to some image hosting site) I would like to give it a try as well.
Thanks in advance!
If you are creating a non-commercial application, you might want to check out Imgur. Their API is free for open-source applications and non-commercial applications.
A note from their official API page: Each application can allow approximately 1,250 uploads per day or approximately 12,500 requests per day.