📄 File API Docs

This is a simple API for uploading files. Send a POST request with your file to the endpoint below to upload it and receive its metadata in JSON format.

Note: This API automatically compresses and resizes large images to make them web-ready.

API Endpoint

POST https://ricram.com/filestore/api.php

Usage with cURL

curl -X POST -F "file=@/path/to/your/image.jpg" "https://ricram.com/filestore/api.php"

Usage with n8n

Use the HTTP Request node with the following configuration:

  1. Method: POST
  2. URL: https://ricram.com/filestore/api.php
  3. Body Content Type: Form-Data
  4. Under Fields, click Add Field:
    • Name: file
    • Value: Use an expression like {{ $binary.data }} to reference the incoming file data.
    • Enable the Is File Data? toggle for this field.

Sample JSON Response

{
    "status": "success",
    "download_link": "https://ricram.com/newuploads/file_1693952461.1234_a1b2c3d4.jpg",
    "id": "file_1693952461.1234_a1b2c3d4.jpg",
    "file_info": {
        "original_name": "my-photo.jpg",
        "size_bytes": 256789,
        "original_size_bytes": 5242880,
        "mime_type": "image/jpeg",
        "stored_path": "newuploads/file_1693952461.1234_a1b2c3d4.jpg",
        "is_image": true
    },
    "metadata": { "... EXIF data ..." },
    "geolocation": {
        "latitude": 34.052235,
        "longitude": -118.243683
    }
}