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

On submission of an upload form, copy the media library items to "Historical Material Repository" in Google Drive #9

Open
mrengy opened this issue Feb 20, 2022 · 7 comments
Assignees
Labels
php wordpress backend WordPress admin functionality and things like custom fields / taxonomies, processing uploads

Comments

@mrengy
Copy link
Owner

mrengy commented Feb 20, 2022

Put the copies in the root of "Historical Material Repository" - ideally without involving Zip files or folders.

On the main scvanguard.org upload form that we are phasing out, I set this up to use Zip files for multi-item uploads via Zapier. Doing it with Zapier and not involving Zip files requires a paid Zapier account.

Short term

could set up this Zapier integration on history.scvanguard.org to put uploaded files in the root of the Historical Material Repository folder. Will involve some manual unzipping and creating shortcuts to Decades Project > Deliverables 1: Working Material subfolders for the appropriate year / corps.

Long term

  1. Perhaps there's another way with a combination of a WordPress action / GravityForms API and the Google Drive API to put uploaded files in the root of the Historical Material Repository folder without zipping them.
  2. Bonus: Also create "shortcuts" that live in the appropriate year / ensemble under Decades Project > Deliverables 1: Working Material.
@mrengy
Copy link
Owner Author

mrengy commented May 21, 2022

Need Zapier for GravityForms add on, only possible on pro or higher plans

@mrengy
Copy link
Owner Author

mrengy commented May 21, 2022

@mrengy
Copy link
Owner Author

mrengy commented May 21, 2022

@mrengy
Copy link
Owner Author

mrengy commented May 28, 2022

Completed short term solution with Zapier. Long term solution would avoid having to unzip files from batches and potentially also create aliases in year folders

@mrengy
Copy link
Owner Author

mrengy commented Jul 1, 2022

Successfully included dependencies from https://stackoverflow.com/a/63690426/370407

@mrengy
Copy link
Owner Author

mrengy commented Jul 29, 2022

Following https://stackoverflow.com/a/63690426/370407

Registered app in Google Cloud console. Got credentials and placed in ignored file.

@mrengy mrengy added wordpress backend WordPress admin functionality and things like custom fields / taxonomies, processing uploads php labels Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
php wordpress backend WordPress admin functionality and things like custom fields / taxonomies, processing uploads
Projects
None yet
Development

No branches or pull requests

1 participant