JoeGandy / ShareX-Custom-Upload

A little PHP script created for uploading custom sharex files to your own webserver
MIT License
166 stars 50 forks source link

Add back ShareX name parameter #97

Closed theaquarium closed 4 years ago

theaquarium commented 4 years ago

Fixes #88

This adds back the ability to send the name parameter for ShareX uploads, which allows users to use ShareX's templating system for naming their files.

However, this update has a configuration schema change, since default_naming_scheme, use_default_naming_scheme_for_sharex, and use_default_naming_scheme_for_gallery have been removed in favor of sharex_upload_naming_scheme, gallery_upload_naming_scheme, and text_upload_default_naming_scheme. The new options allow for greater configurability and make the naming system a bit more straightforward. Changing config schema isn't ideal, but I don't really know how better to do this while keeping it understandable.

Let me know what you think.