SQLizer Logo

Easily convert files into SQL databases

POST /api/files/{ID}/data

This endpoint is used to upload the input file that SQLizer should convert into SQL.

Unlike the other endpoints, the request body should be encoded with the "multipart/form-data" content type. It accepts the following parameters:

Name Type Required Remarks
file application/octet-stream The value of this parameter may contain either the entire contents of the input file. Or a part of the file. If the file is larger than 100Mb, we recommend splitting the file into multiple parts and uploaded them separately and using the PartNumber parameter to identify each part.
PartNumber Integer

Used to tell SQLizer that the "file" parameter only contains a part of the overall input file. Once all parts have been uploaded, each of the parts provided will be combined in their "PartNumber" order before the conversion continues.

Each part with exception of the last part must be at least 5Mb (5,242,880 bytes) but must be no more than 10,000,000 bytes. The final part must be no more than 10,000,000 bytes. See the page on multipart upload for more information.

If the upload was successful, SQLizer will respond with a HTTP 200 code and a JSON status message, similar to the following:

{
    "Status": "Ok"
}