OpenBikeSensorFirmware icon indicating copy to clipboard operation
OpenBikeSensorFirmware copied to clipboard

link after upload

Open mega-stoffel opened this issue 5 years ago • 4 comments

in the confirmation screen, which shows all uploaded tracks, there could be a link to the upload-site. Directly after I upload tracks, I usually got there (right now manually) and look at the tracks and make modifications.

mega-stoffel avatar Dec 31 '20 23:12 mega-stoffel

Question to the API side. Can we return a direct link to the track on the portal as response to the upload? Otherwise it would be a static link to the configured portal.

amandel avatar Jan 02 '21 09:01 amandel

As you Upload multiple Tracks at once: We can maybe return a link for each uploaded track, do you then want to list all Tracks with links?

Steffeng5 avatar Jan 02 '21 10:01 Steffeng5

There is one multi-part HTTP POST request per track from OBS to the API, the idea is that with the 200 status code you also send a URL as text body or might be as HTTP location response header (change status code to 201?). Not sure how to represent the links then on the UI. Might be with the OK status symbol but we will see. The user can then click through all uploaded track one by one. (links should open in new window)

amandel avatar Jan 02 '21 16:01 amandel

@Steffeng5 - die v0.4.391 ist auf einen location http header mit link auf das portal vorbereitet.

amandel avatar Jan 08 '21 14:01 amandel