User Journey
What a person sees and what the system does, for uploading a file in version 1.
Upload a document on a computer
Someone with a document on their computerUPLOAD-V1-E2-02UPLOAD-V1-E2-03UPLOAD-V1-E2-04
Starts when: Drags a file onto the upload area, or chooses Upload a file.
The personDrops a PDF onto the upload area, or picks it with Choose file.
The systemThe upload area checks the type and size in the browser first, so an obvious mistake is caught before anything is sent.
The personSees the file name and a progress bar starting at 0%.
The systemUpload records the file as pending_upload and returns a link valid for 5 minutes.
The personWatches the bar fill.
The systemThe browser sends the file straight to private storage with that link. Upload never handles the bytes.
The personSees 'Checking your file…' for a moment.
The systemUpload confirms the file arrived at the declared size, checks its first bytes match its type, and counts its pages.
The personSees 'Uploaded' and a preview of the file, then continues.
The systemThe file is ready. The app shows Upload's FilePreview for it and moves on when the person continues; in DocFlow, to the extraction page.
Result: The file is stored privately, checked and ready to use. Only its owner can read it, through links that last 5 minutes.
Upload from a phone
Someone with a paper invoice or a file on their phoneUPLOAD-V1-E2-04
Starts when: Taps Choose file or Take photo.
The personTaps Take photo and photographs the invoice, or taps Choose file and picks a PDF or image.
The systemThe phone's own camera or file picker opens. Nothing depends on dragging, which phones cannot do.
The personSees the photo's name and the progress bar.
The systemAs on a computer: the file is recorded and sent straight to storage.
The personSees 'Uploaded' and moves on.
The systemThe photo is checked as a JPEG or PNG and counted as one page.
Result: The same result as on a computer.
Upload a file that is not what it says
Someone who picked the wrong file, for example a renamed spreadsheetUPLOAD-V1-E2-03
Starts when: The browser reports a PDF, but the content is something else.
The personUploads the file; the bar reaches 100%.
The systemThe file arrives in storage.
The personSees 'This file isn't a readable PDF, PNG or JPEG. Choose another file.'
The systemThe check finds the first bytes do not match the type. Upload marks the file rejected with the reason type_mismatch and deletes it from storage at once.
The personChooses another file.
The systemA new upload starts. The rejected one is kept only as a record, without content.
Result: Nothing unreadable is stored or passed on to extraction.
Lose the connection during an upload
Someone on a weak mobile connectionUPLOAD-V1-E2-04
Starts when: The connection drops while the bar is moving.
The personSees 'The upload stopped. Check your connection and try again.' and a Retry button.
The systemThe browser's transfer failed. Upload still has the file as pending_upload.
The personTaps Retry.
The systemIf the 5-minute link is still valid, the browser sends the file again with it; if not, it asks Upload for a new file and link.
The personSees 'Uploaded'.
The systemThe check runs as usual.
Result: The person never has to start over by hand. An upload abandoned altogether is deleted by the daily clean-up after 24 hours.
Open a stored file
The file's owner, for example checking the original next to extracted dataUPLOAD-V1-E2-03
Starts when: Taps the file's name or View original.
The personTaps View original.
The systemThe app asks Upload for a link to the file.
The personSees the PDF or image open in a new tab.
The systemUpload returns a link valid for 5 minutes; the browser reads the file straight from storage.
The personTaps Download instead.
The systemThe link is made with attachment, so the file saves under its original name. Upload records file.downloaded.
Result: The person sees their file. The link stops working after 5 minutes, so a forwarded link is of no use to anyone else.
Delete a file
The file's ownerUPLOAD-V1-E2-02
Starts when: Chooses Delete on a file and confirms.
The personChooses Delete, then confirms 'Delete this file? This can't be undone.'
The systemThe app asks Upload to delete the file.
The personSees the file disappear from the list.
The systemUpload removes the object from storage, marks the file deleted and records file.deleted.
Result: The content is gone for good. A record that the file existed remains, without content, so the history still makes sense.
When something goes wrong
- Picks a Word document or another unsupported type
unsupported_file_type - 'PDF, PNG and JPEG files only.' Nothing is uploaded.
- Picks a file over 10 MB
file_too_large - 'This file is 14.2 MB. The limit is 10 MB.' Nothing is uploaded.
- Uploads a PDF with more than 10 pagesRejected:
too_many_pages - 'This PDF has 14 pages. The limit is 10.' The file is deleted.
- The content does not match the typeRejected:
type_mismatch - 'This file isn't a readable PDF, PNG or JPEG. Choose another file.'
- The connection drops mid-upload
upload_missing - 'The upload stopped. Check your connection and try again.' with Retry.
- Waits more than 5 minutes before the file is sent(S3 refuses the expired link)
- Nothing different: the upload area asks for a new link and continues.
- What arrived is not the size declared
size_mismatch - 'Something went wrong sending this file. Try again.'
- Opens a file that is still uploading
file_not_ready - 'This file is still uploading.'
- Opens a file older than 30 days
file_expired - 'This file was removed after 30 days. Upload it again to use it.'
- Follows a link to someone else's file
file_not_found - 'File not found.' Nothing reveals that the file exists.
- Storage is unavailable
storage_unavailable - 'Uploads are unavailable for a moment. Try again shortly.' Nothing is lost.
- Is signed out
not_authenticated - Is taken to sign in, then returned to the upload page.
User journeys on GitHub →