Skip to main content
Presigned URLs allow you to grant temporary permission to upload a file directly to Fivemanage without sharing your API key with the client.

Server-Side Export

requestPresignedUrl

Requests a presigned URL from the Fivemanage API. Definition:
Usage:

How it works

  1. Server Request: Your server script calls requestPresignedUrl.
  2. API Response: Fivemanage returns a unique, time-limited URL.
  3. Client Upload: Your server sends this URL to the client (e.g., via a NUI callback or client event).
  4. Direct Upload: The client performs an HTTP PUT or POST request to that URL with the file data.
This approach is more efficient for large files (like videos or high-quality audio) as the data doesn’t need to pass through your FiveM server.

Example: Client-side Upload (Conceptual)

Server:
Client (NUI/JS):