-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Ability to specify a folder name in the bucket while saving Parse Fille #417
Comments
Thanks for opening this issue!
|
If you are receiving this error when attempting to save a In addition, there are a number of issues on the S3 adapter that eludes to this being a server issue: parse-community/parse-server#4899, parse-community/parse-server#6518, parse-community/parse-server-s3-adapter#140 (seems to be the exact issue you are having based on the file name you've been posting in slack), parse-community/parse-server-s3-adapter#16 (comment), parse-community/parse-server-s3-adapter#76, parse-community/parse-server-s3-adapter#171, parse-community/parse-server-s3-adapter#175 (the issue you opened, if it can save "properly", it should be able to delete), along with the many details I sent on slack when this issue was posted. Lastly, you should be looking for Parse Server documentation/code that demonstrates this feature is "officially" available on the Parse-Server/Parse-S3-Adapter. If it isn't officially supported, you should open your issue in one of those repos are or for this issue to be moved to the necessary repo. |
The server returns a number of improper errors: parse-community/parse-server#7444, parse-community/parse-server#8029 |
Also, please uncheck the box above as the latest version of the Swift SDK at the time of your post was
You should also report the specific version and location of the Parse Server S3 Adapter you are using along with the options you have set. For example, you posted an issue about file names and the documentation for the S3 adapter clearly has an option for |
Alright so I check on the latest and now I get this error. |
Since I'm doing same thing from javascript sdk as well, It works there. |
So when doing from ParseReact javascript I get the validateFilename method called and I get the name like this |
This is literally the same exact error message I posted in the Parse Slack: You are proving the point I’ve stated many times, “it is a server error”. It doesn’t matter that it works with the JS SDK (I proved this in the slack discussion). You need to read the links in #417 (comment). They tell you exactly where to look for the “server issue”. I literally linked PR’s and issues that say the exact same thing. The links also state, word-for-word Your issue will not be fixed until you transfer your issue to the parse-server or the parse s3 adapter. It’s "not a Swift SDK issue" it's a "server issue". |
@cbaker6 The issue was resolved on the server side. I think it's some kind of decoding issue on ParseSwift's end |
Related discussion which states they receive the same type of error using JS. As I've mentioned many times now, this looks to be a server issue and not related to the Swift SDK. |
New Issue Checklist
Issue Description
I'm not able to save files within a bucket from Parse Swift. As it's not able specify directory name.
Steps to reproduce
just save a ParseFille
Actual Outcome
**ParseError code=-1 error=Invalid struct: No value associated with key CodingKeys(stringValue: "name", intValue: nil) ("name").**
Expected Outcome
It should upload the file in userAvatars directory in the bucket.
Environment
Parse Swift 4.7.0
Parse Server 5.2.1
Client
4.7.0
13.4.1
iOS 15
12.4
Server
5.2.1
linux
Digital Ocean
Database
MongoDB
6
MongoDB Atlas
Logs
**ParseError code=-1 error=Invalid struct: No value associated with key CodingKeys(stringValue: "name", intValue: nil) ("name").**
The text was updated successfully, but these errors were encountered: