MG FileShare upload API
POST /?api=1multipart/form-datafiles[].Optional form fields
expiration24h, 7d, or never. Defaults to 24 hours.expires_hourspermanent1, true, yes, or on to keep the file available after downloads. Omit it for one-time downloads.responsejson to receive a structured JSON response.Responses
text/plain response body containing only the share URL.{"link","token","expires","expires_timestamp","permanent"}application/json response with an error message.curl -F "files[]=@example.pdf" -F "expiration=7d" -F "permanent=1" -F "response=json" "https://fileshare.mad-gamer.com/?api=1"Uploading multiple files creates one ZIP archive and returns one share link.