five-for-the-future/plugins/wporg-5ftf
Kelly Dwan f9d4a0bd59
Create a Pledge: Upload a logo (#45)
* Allow image uploads

* Add the logo as "generated" meta

This will be attached after we've processed the `$_FILES` object into an upload.

* Load image into media library, attach to the submitted pledge as a featured image.

* Move where image handling happens so we can pass back errors

* Pass back error if upload fails

* Create a validation function to do basic checking of form data

* Move logo uploading to a separate function, and rely on core checks for mime & filesize checking

* Tweak function name to be more clear

* Remove bmp, tiff, and ico file types
2019-10-28 11:47:56 -04:00
..
assets Create Pledge: Make form functional (#31) 2019-10-08 18:29:35 -04:00
includes Create a Pledge: Upload a logo (#45) 2019-10-28 11:47:56 -04:00
tests Email: Send pledge confirmation with authentication token. (#46) 2019-10-25 12:07:09 -07:00
views Create a Pledge: Upload a logo (#45) 2019-10-28 11:47:56 -04:00
.gitignore Tests: Setup PHPUnit and PHPUnit Watcher. 2019-10-23 14:27:26 -07:00
composer.json Composer: Document why PHPUnit 7 is used instead of 8. 2019-10-24 16:22:55 -07:00
composer.lock Composer: Warn about bug in test watcher interactive mode. 2019-10-24 08:12:48 -07:00
index.php Email: Send pledge confirmation with authentication token. (#46) 2019-10-25 12:07:09 -07:00
phpunit-watcher.yml.dist Tests: Setup PHPUnit and PHPUnit Watcher. 2019-10-23 14:27:26 -07:00
phpunit.xml.dist Tests: Setup PHPUnit and PHPUnit Watcher. 2019-10-23 14:27:26 -07:00