iOS Shortcuts
Safari cannot add web apps to the iOS share sheet, so the installed Fileship app does not appear there. A shortcut in Apple's Shortcuts app can upload to Fileship from the share sheet instead.
This shortcut was written against the Upload API and has not been tested on an iPhone yet.
Build the shortcut
You need your upload token from Settings → Integrations in the dashboard.
- Open Shortcuts, tap + and name the shortcut Upload to Fileship.
- Tap the ⓘ button and turn on Show in Share Sheet. Under Share Sheet Types, keep Images, Media and Files.
- Add Get Contents of URL and set:
- URL:
https://files.example.com/api/files - Method: POST
- Headers: add
Authorizationwith the valueBearer fs_...(your token) - Request Body: Form. Add a field of type File with the key
fileand the value Shortcut Input. Optionally add text fields such asfileNameType=Random.
- URL:
- Add Get Dictionary Value: get Value for the key
urlin Contents of URL. - Add Copy to Clipboard with that value.
- Optionally add Show Notification with the text
Link copied.
Use it
In Photos, Files or any app, tap Share and choose Upload to Fileship. The link is copied to the clipboard when the upload finishes.
Shorten links
Make a second shortcut that accepts URLs from the share sheet, with Get Contents of URL set to https://files.example.com/api/links, method POST, the same Authorization header and a JSON body with the key url set to Shortcut Input. Get the value for shortUrl and copy it.
Things to know
- Each upload is one request with the whole file; your reverse proxy must accept bodies that large. Videos from an iPhone can be several hundred megabytes.
- Your token is stored inside the shortcut. Don't share the shortcut with others, and update it after Regenerate.