Products · Upload V1

Document upload

Upload a file from the browser straight to a private AWS S3 bucket.

Version 1 · Files to AWS S3Designed, not builtModule 3 of 15

DesignUser JourneySections

User Journey

What a person sees and what the system does, for uploading a file in version 1.

Upload a document on a computer

Starts when: Drags a file onto the upload area, or chooses Upload a file.

  1. 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.

  2. 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.

  3. The personWatches the bar fill.

    The systemThe browser sends the file straight to private storage with that link. Upload never handles the bytes.

  4. 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.

  5. 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

Starts when: Taps Choose file or Take photo.

  1. 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.

  2. The personSees the photo's name and the progress bar.

    The systemAs on a computer: the file is recorded and sent straight to storage.

  3. 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

Starts when: The browser reports a PDF, but the content is something else.

  1. The personUploads the file; the bar reaches 100%.

    The systemThe file arrives in storage.

  2. 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.

  3. 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

Starts when: The connection drops while the bar is moving.

  1. 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.

  2. 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.

  3. 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

Starts when: Taps the file's name or View original.

  1. The personTaps View original.

    The systemThe app asks Upload for a link to the file.

  2. 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.

  3. 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

Starts when: Chooses Delete on a file and confirms.

  1. The personChooses Delete, then confirms 'Delete this file? This can't be undone.'

    The systemThe app asks Upload to delete the file.

  2. 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 typeunsupported_file_type
'PDF, PNG and JPEG files only.' Nothing is uploaded.
Picks a file over 10 MBfile_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-uploadupload_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 declaredsize_mismatch
'Something went wrong sending this file. Try again.'
Opens a file that is still uploadingfile_not_ready
'This file is still uploading.'
Opens a file older than 30 daysfile_expired
'This file was removed after 30 days. Upload it again to use it.'
Follows a link to someone else's filefile_not_found
'File not found.' Nothing reveals that the file exists.
Storage is unavailablestorage_unavailable
'Uploads are unavailable for a moment. Try again shortly.' Nothing is lost.
Is signed outnot_authenticated
Is taken to sign in, then returned to the upload page.