Upload your data directly into SPINR and use it to build new tabular datasets and services.
File type | Transfer limit |
---|---|
CSV | 100MB |
JSON | 100MB |
## Data upload user guide | |
Upload your data directly into SPINR and use it to build new tabular datasets and services. | |
## Accepted file types and transfer limits | |
| File type | Transfer limit | | |
| ------------- | -------------- | | |
| CSV | unlimited | | |
| JSON | unlimited | |
bytesToSize(bytes: any) { | |
var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB']; | |
if (bytes == 0) return '0 Byte'; | |
var i = Math.floor(Math.log(bytes) / Math.log(1024)); | |
return Math.round(bytes / Math.pow(1024, i)) + ' ' + sizes[i]; | |
}; |
import cloudinary from 'cloudinary'; | |
cloudinary.config({ | |
api_key: '', | |
api_secret: '', | |
cloud_name: '' | |
}); | |
export function sendMail(req, res) { | |
cloudinary.v2.uploader.upload_stream({ tags: "snap_qoute_me" }, function(error, result) { |
axios.interceptors.response.use( | |
function(response) { | |
return response | |
}, | |
function (error) { | |
if (error.response && error.response.data && error.response.data.location) { | |
console.log('error.response', error.response); | |
} | |
return Promise.reject(error); | |
} |