parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.9k stars 4.78k forks source link

Upload files (Video file) more that 2mb doesn't work #8323

Open maravilhosinga opened 1 year ago

maravilhosinga commented 1 year ago

New Issue Checklist

Issue Description

Uploading files more than 2 mb doesn't work, it returns with error -1

Steps to reproduce

Upload video with more that 2mb

Actual Outcome

Class: ParseFile
Function: ParseApiRQ.upload
Status Code: -1
Type: UnknownError
Exception: FormatException: Unexpected character (at character 1)
<html>
^

Expected Outcome

Success

Environment

Parse Server versions from 5.0.0 with Self Hosted in Digital Ocean

Server

Database

Client

Logs

parse-github-assistant[bot] commented 1 year ago

Thanks for opening this issue!

mtrezza commented 1 year ago

Parse Server version: 5.0.0 and up Database version: 4 and 5 SDK version: latest versions

Please specify the exact versions you are using. Which storage adapter are you using, i.e. where are you trying to store the file? Please add any log entries and copy/paste the full error message.

maravilhosinga commented 1 year ago

Parse Server version: 5.3.3 Which storage adapter: @parse/s3-files-adapter This is error log:

Class: ParseFile
Function: ParseApiRQ.upload
Status Code: -1
Type: UnknownError
Exception: FormatException: Unexpected character (at character 1)
<html>
^
mtrezza commented 1 year ago

Were you able to find out where / why FormatException: Unexpected character (at character 1) occurs?

mtrezza commented 1 year ago

Which client SDKs and versions are you using when this happens? You wrote "SDK: iOS, Android, Flutter and cloud code", does this happen with all SDKs?

maravilhosinga commented 1 year ago

Which client SDKs and versions are you using when this happens? You wrote "SDK: iOS, Android, Flutter and cloud code", does this happen with all SDKs?

I tried with Flutter and Cloud code, but it works good with Parse Server version 4.5.0

Were you able to find out where / why FormatException: Unexpected character (at character 1) occurs?

It returned in error.

mtrezza commented 1 year ago

Here's a suggestion: