Next.js Discord

Discord Forum

NextJS: Upload audio/aac file to minio Bucket

Unanswered
just-vicky posted this in #help-forum
Open in Discord
I am using minio to store the audio file in bucket. But when i upload the picked file, it has the type "FIle". The presigned URL accepts the file and returns status 200 as OK, but the file is not found in the minio bucket. When i tried postman, there I am uploading the data as binary from the device. I googled some resources and it told me to use FileReader to convert to binary and put it, but the results are the same.

Does anyone have any idea on audio file uploading as binary to minio. Please help me with this.

the log from minio response
Response from minio:
{data: '<!DOCTYPE html><html lang="en"><head><meta charSet…"},\"$1d\"]]\n10:null\n"])\x3C/script></body></html>', status: 200, statusText: 'OK', headers: AxiosHeaders, config: {…}, …}
config
:
{transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}
data
:
"<!DOCTYPE html><html lang="en"><head><meta char
headers
:
AxiosHeaders {cache-control: 'no-store, must-revalidate', connection: 'keep-alive', content-encoding: 'gzip', content-type: 'text/html; charset=utf-8', date: 'Fri, 22 Nov 2024 17:01:13 GMT', …}
request
:
XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
status
:
200
statusText
:
"OK"

0 Replies