SrS2225a / custom_uploader

Custom Uploader is a simple, lightweight, and easy to use file uploader built using flutter for android devices that allows you to upload files to a file host of your choice.
MIT License
39 stars 2 forks source link

Debug option #12

Open dgw opened 4 months ago

dgw commented 4 months ago

What you want to be added

A way to view the full request and response from the most recent upload attempt would be helpful when trying to configure a new service.

Why you want this feature

Uploader settings are tricky to debug if they don't work correctly. For example, I've been trying to set up a service based on a ShareX config (thanks so much for building in ShareX config support!) that simply won't function. I get an error with either 400 Bad Request or 302 Found status, but can't see any more of what the API sends back.

What I can see in the API documentation also matches the imported config, and the imported config also came directly from the service provider. It should just work, but doesn't, and I can't see within Custom Uploader what the specific error is.

Screenshots

No response

SrS2225a commented 4 months ago

Hi, thanks for the feedback. Custom Uploader already sort of supports what you are looking for. When you go and add an uploader, there is an extra field called "URL Error Response", which will tell the app how to get the error message from the api. Try with $regex:.*$, which will tell it to get all text from the response. Refer to the "help" page for more information.

However, over time I always felt that this is a little redundant, so for a future release I plan on adding an "test" function which allows you to see within the app what an response will look look like, replacing the "URL Error Response" field