Parse-dashboard: Broken file names in Files columns while using S3 bucket

Created on 16 May 2016  路  8Comments  路  Source: parse-community/parse-dashboard

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

  • [V] You're running version >=2.1.4 of Parse Server.
  • [V] You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

Parse Server 2.2.9
Dashboard 1.0.11
S3 bucket as files store

Steps to reproduce

Upload file using dashboard
After the upload done see file name with missing first 4 characters
The issue is because the substring of 37 characters, but in case the S3 (at least, i don't know about other file store services) the uuid of the file generated is missing the dashes, so the length of the uuid is 33 instead 37.

Possible solution is to avoid the length based calculation, and use indexOf("_"), and this will be a good solution for it, but needs to check first if tfss is found, since there, theres no "_" separating the name from the uuid.

Logs/Trace

Note: If you get a browser JS error please run npm run dev. This will provide source maps and a much more useful stack trace.

bug

Most helpful comment

@drew-gross I'll be very happy to do it.

All 8 comments

Sounds like you've got a potential solution, think you could submit a PR?

@drew-gross I'll be very happy to do it.

@aryelevin can you share your code fixes in the comments here?

@aryelevin any update on this?

@drew-gross any update on this issue?

Has this bug been already fixed?
I am with Parse-server 2.2.12 and deployed to Heroku + mlab. I am still having the same issue... ...

I'm experiencing the same issue, too.

I am experiencing the same issue.

Was this page helpful?
0 / 5 - 0 ratings