'5321 Zen' At One With The Upload Race Description
User Story
For both clubs and registration custom questions, please add the question type of "image upload". This upload should have checkboxes for what file formats are allowed. The checkboxes that should exist are: gif
, png
, jpg
, pdf
. Make sure that they can work case insensitive (ie: PNG
and png
should both work). This should have the other stuff like required/not required, etc.
The size limit should be 4mb. The event should be able to view the uploaded file from the "view participant" page or "view member" page of the given person that uploaded the file. Like other questions, the question should be shown and next to that question would be the file name (please retain file names when possible... with stuff we add to keep unique), and then if the director clicks the file name it should open the image in a new tab. You could also do a thumbnail on the view participant page if it is possible (I don't believe that is possible with PDF
).
Files should last 13 months after the event date. This would allow them next year to compare an image if the same participant/member went to the event the following year. For membership there is no event date, so just have member uploads be 13 months after the membership is expired. As long as they keep the membership active, the photo should remain.
Edit participant should replace files if additional are added, so we don't store more than we need to. All of these file purges should be handled by a cron.
Confirmation email should have the file name and when possible a thumbnail (similar to what we will do on the view participant/member pages).
Definition of Done
- â
Registration
- â New custom question type available: image upload
- â
Directors can select one or more allowed file formats from among
gif
,png
,jpg
, andpdf
- â File extension validation is case-insensitive
- â Files larger than 4MB are rejected
- â
File names are preserved,but are made unique by appending unique characters (hash, timestamp, etc.) - ð¤
Files uploaded this way are purged 13 months after the event date through a cronTo be done in a later ticket - â
A thumbnail preview is shown when viewing that participant's question answers (N/A for
pdf
) - â
A thumbnail preview is included in the confirmation email (N/A for
pdf
) - â Files added by the director editing a participant replace the existing file, if it exists
- â
Clubs
- â New custom question type available: image upload
- â
Directors can select one or more allowed file formats from among
gif
,png
,jpg
, andpdf
- â File extension validation is case-insensitive
- â Files larger than 4MB are rejected
- â
File names are preserved,but are made unique by appending unique characters (hash, timestamp, etc.) - ð¤
Files uploaded this way are purged 13 months after the uploader's membership expires through a cronTo be done in a later ticket - â
A thumbnail preview is shown when viewing that member's question answers (N/A for
pdf
) - â
A thumbnail preview is included in the confirmation email (N/A for
pdf
)
- Location: Provo, UT 84604
- Race Date: 2026/01/14 10:17:00 AM (Wednesday)
-
Categories:
- bike for the octopus