imgur upload direct from browser without revealing client id
i'm looking at hosting most of the pictures on my website from imgur
(these pictures will be publicly visible). i would like users to be able
to upload these pictures and i would prefer it if those pictures never
come to my server at all (so as to reduce unnecessary bandwidth usage).
the imgur site says that i can upload images to an anonymous account,
which sounds like the option i want:
For public read-only and anonymous resources, such as getting image info,
looking up user comments, etc. all you need to do is send an authorization
header with your client_id in your requests. This also works if you'd like
to upload images anonymously (without the image being tied to an account),
or if you'd like to create an anonymous album. This lets us know which
application is accessing the API.
Authorization: Client-ID YOUR_CLIENT_ID
however, i have one misgiving about this method because everybody will be
able to see my client id. i realize that the client id is not private
information, but the thing i am worried about is that if other people
start using my client id to make uploads then it may push me over the rate
limit and imgur may lock out my client id for a while, rendering my site
useless.
i'm just wondering if there is a way for users to upload images directly
to imgur without them seeing my client id? an oauth upload page on the
imgur website might solve this problem, but i don't know if one exists?
No comments:
Post a Comment