Skip to content

Fix Reference photo uploads#189

Merged
hcooper merged 1 commit intomasterfrom
fix-form-upload
Apr 20, 2026
Merged

Fix Reference photo uploads#189
hcooper merged 1 commit intomasterfrom
fix-form-upload

Conversation

@hcooper
Copy link
Copy Markdown
Contributor

@hcooper hcooper commented Apr 10, 2026

This fixes another issue reported to me by multiple users recently.

The reference photo upload system seems to "loose" their photo.

The source of the problem is Get auto-population of "destination filename" working again.

tl;dr - basically the uploaded file was getting renamed from what we expected (Canyon-date_pic.jpg) to what it was named locally.

This only affects uploads done by Page Forms, i.e. condition reports and references, the former doesn't mind as it will use any name it's given. The later expects a particular format.

Inital state - before selecting a file, we prepopulate the dest filename field.
2026-04-09 22_15_57-Create Reference_ References_Ruth Creek-20260410051406 - ropewiki — Mozilla Fire

BROKEN - after selecting a file to upload, the dest name gets changed to match your local version.
2026-04-09 22_16_24-Create Reference_ References_Ruth Creek-20260410051406 - ropewiki — Mozilla Fire

FIX - file keeps the name the reference system expect.
2026-04-09 22_16_08-Create Reference_ References_Ruth Creek-20260410051406 - ropewiki — Mozilla Fire

There's much more to improve in this upload flow (e.g. incorrect max file limit stated, ugly clunky UI, etc) however in future versions this whole custom upload form is going away, so customizing it further now is mostly a waste of time.

@hcooper hcooper merged commit 0e19e56 into master Apr 20, 2026
1 check passed
@hcooper hcooper deleted the fix-form-upload branch April 20, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants