rfcx / arbimon-uploader

Desktop application for ingesting audio to RFCx platform
Apache License 2.0
0 stars 0 forks source link

Block user to upload big file #204

Closed antonyharfield closed 6 months ago

antonyharfield commented 6 months ago

Related to: Ingest Service POST /uploads receives duration and file_size to prevent a very long audio file

Error handling

Frontend image

Display the error message on prepared tab "Audio duration is longer than 1 hour. Please split files into shorter durations.”

koonchaya commented 6 months ago

@rassokhina-e Can we make sure when the user upload file with the duration >1 hour, we stop the file not to go back to queue a few times.

rassokhina-e commented 6 months ago
Untitled
rassokhina-e commented 6 months ago

grafana log:

Body: {"filename":"2024-01-20 14.38.49 (1).wav","checksum":"23ca336f2f629dd3897b03a5f5f3ec7ec44ff75d","stream":"0hk0i4w59qig","timestamp":"2024-01-20T20:38:49.000Z","duration":211.289833,"file_size":30504212} {"meta":{}}
rassokhina-e commented 6 months ago
Untitled
koonchaya commented 6 months ago

@rassokhina-e Blocking large file did not show the error message in the version you shared with me https://rfcx.slack.com/files/U73MLD3UP/F06LKAY44BZ/arbimon_uploader-1.5.6.dmg.

Image

koonchaya commented 6 months ago

Image