Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upload file(s) not alphabet base name. #2864

Closed
4 tasks done
ghost opened this issue Oct 13, 2016 · 3 comments
Closed
4 tasks done

Cannot upload file(s) not alphabet base name. #2864

ghost opened this issue Oct 13, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2016

Please read the following instructions carefully.

Check out #1271 for an ideal bug report.
The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

Many members of the community use Stack Overflow and Server Fault to ask questions.
Read through the existing questions or ask your own!

For database migration help, please file a bug report at https://parse.com/help#report

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Issue Description

Cannot upload file(s) named with other language : ex) Korean, Chinese, Japanese.

  • file name : abcde.jpg => O
  • file name : 한글.jpg => X
  • file name : 漢文.jpg => X
  • file name : ひらがな.jpg => X

It seems encoding problem in Parse Server, and it was not happen 2.2.11 or under version.

Please see this link(screen shots)

Steps to reproduce

Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

  1. Selected test file (under 1MB).
  2. Change file name each country language.
  3. Upload 2.

Expected Results

Upload successfully like before.

Actual Outcome

Cannot uploaded files.
Only uploaded alphabet based file name.

  • file name : abcde.jpg => O
  • file name : 한글.jpg => X
  • file name : 漢文.jpg => X
  • file name : ひらがな.jpg => X

Environment Setup

  • Server
    • parse-server version (Be specific! Don't say 'latest'.) : 2.2.22
    • Operating System: Microsoft Azure Web app service
    • Hardware: S1 Standard
    • Localhost or remote server? Microsoft Azure Web app Service.
    • File Adapter : parse azure storage adapter 1.1.0
  • Database
    • MongoDB version: 3.2.11 (mLab Sandbox)
    • Storage engine: Sandbox
    • Hardware: Sandbox
    • Localhost or remote server? mLab
    • Also heroku (2.2.18) either has this problem.

Logs/Trace

You can turn on additional logging by configuring VERBOSE=1 in your environment.

  • Cannot see error log(s) in dashboard.
code : 122
error : "Filename contains invalid characters."
@sailinger
Copy link

if the file name contains '+', '-', '&', this bug will repro. there would likely be more special chars causing the issue. calling encodeURI() does not solve the problem.

any help?

@JianxunRao
Copy link

same issue.
i am currently using parse-server 2.3.1 with a fileadapter of AliYun OSS(just like azure storage adapter).
when i upload a file with chinese name,it always fails.
even though i change the parse server version from latest to 2.2.22 as @estylehq suggests , this problem remains.
any help will be appreciated.

@stale
Copy link

stale bot commented Sep 18, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 18, 2018
@stale stale bot closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants