mopza.blogg.se

Sharex custom uploader php with raandom name
Sharex custom uploader php with raandom name






sharex custom uploader php with raandom name

Max amount of attempts at generating a unique name (configuration) (File must exist) Deletion URL of the file (File must exist) Security key of the file (File must exist) Size of the file in bytes The info endpoint implements several JSON fields, which can be returned or not depending on your access level, whether you specify a filename, and whether it exists. Human-readable information, only for some errors Human-readable error, sent with all error codes Static error code, only sent if anything fails Username, only for authenticated requestsĪuthentication method used to call the endpoint The following JSON fields can be returned: Name Refer to the available options for more information. Using the filename parameter for the upload endpoint and accessing the rename parameter can be restricted by the configuration. Token (admin) or token (user) and key, filename, new_name The following endpoints are supported: Name Set a custom protocol for the url answer field. Set a custom domain name for the url answer field.

sharex custom uploader php with raandom name

Secret security key for deleting / renaming a file.įor endpoints supporting / requiring a filename.įor the rename endpoint, file mustn't already exist. Specify which API endpoint you're requesting.

sharex custom uploader php with raandom name

The following string parameters are recognized by the API: NameĪuthenticate for accessing restricted endpoints. The file must therefore be in binary format, not base64-encoded. The form shall be encoded as multipart/form-data, with the file form name of image when calling the upload endpoint. You will need to edit the Request URL field to match your own domain name and script path, along with the token argument value that must contain a valid user token previously defined within the API itself.

  • Click the Import dropdown menu, and import the uploader file.
  • Open ShareX, click on Destinations then Custom uploader settings….
  • If you can't open it for whatever reason, follow that procedure: Using the API with ShareXĭownload the ShareXen.sxcu file from this repository and double-click it.
  • Upload it to your webhost by any means, using whichever filename you want.įiles will be uploaded next to the script, in the same folder.
  • Open it with a text editor, and edit the configuration to your needs.
  • #SHAREX CUSTOM UPLOADER PHP WITH RAANDOM NAME DOWNLOAD#

    Download the sharexen.php file from this repository.If you need ideas, go integrate this API into a Discord bot, which could ease management in case you plan to host it for quite a few users. Please note that some features (such as renaming a file) can't be used from ShareX directly, and are solely meant to be called by other scripts or programs. If you have any problem setting this up, you can ask Xenthys#0001 on the ShareX Discord server directly. You can easily parse its answers within your own scripts. It requires at least PHP 7.0 to run, and no database is required.








    Sharex custom uploader php with raandom name