neobooru/SzuruChrome

Feature: make use of temporary file uploads

Closed this issue · 2 comments

For I while now, I was wondering why it takes so long to validate and as well upload the file. I noticed that the "temporary file" feature of szuru-booru is not used, making it inefficient and slow for big posts, potentially breaking the upload.

Please implement this function, upload to that first and then use the contentToken to validate (reverse-search) and upload.
https://github.com/rr-/szurubooru/blob/master/doc/API.md#uploading-temporary-file

Thank you ^^

A little example I made here https://github.com/FlipperLP/fur-importer/blob/main/src/modules/booruHandle.ts
Don't mind the messy code, I'm not a professional

Implemented in 76d1b1e, will be included in the next release.