Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading images through the submission form #7

Open
timraay opened this issue Jun 23, 2024 · 0 comments
Open

Uploading images through the submission form #7

timraay opened this issue Jun 23, 2024 · 0 comments
Labels
enhancement New feature or request Priority: Medium Medium priority question Further information is requested

Comments

@timraay
Copy link
Owner

timraay commented Jun 23, 2024

Google Forms allows you to submit files, including images. These can then be downloaded and stored in the database.

The URL you get when collecting the form's response is https://drive.google.com/u/1/open?usp=forms_web&id=XXXXX. The image can be downloaded using https://drive.usercontent.google.com/download?id=XXXXX&export=download&authuser=1.

There's a number of caveats however.

  • You need to be authenticated to download the image. Can these permissions be changed? Do we need to use the Google Drive API (yuck)? Or maybe we can download them using the submission handler script attached to the Form and include the images as base64 encoded strings? This might be problematic if Google imposes bandwidth usage limits.
  • You can't really edit the images. Maybe we can add an extra control that says "remove all images", but that's not perfect ofc.

Uploading the same images tens of times to various discord channels might also be a little too intensive?

@timraay timraay added enhancement New feature or request question Further information is requested labels Jun 23, 2024
@timraay timraay added the Priority: Medium Medium priority label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority: Medium Medium priority question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant