-
I'm trying to save a UIImage to a ParseFile via cloudcode. I've gotten it to encode and decode using data.base64encodedstring() but I always get this error when saving on Parse-swift-server.
I was wondering could this be because I'm trying to a UIImage as the data: of I can't pinpoint or get more data aside from the error stemming from trying to save ParseFile over at Parse-swift-server. When I save directly using Parse-Swift sdk, it works fine. thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Come to think of it, the data I'm sending over isn't a UIImage but a jpeg from the said UIImage. So I may be off thinking that's the problem. Any idea what I should look into on why I can't save on Parse-Swift-Server? |
Beta Was this translation helpful? Give feedback.
-
And do you think it has something to do with these lines in Parse-Server? I think this is where the error comes from when I save via Parse-Server-Swift. if (!req.body || !req.body.length) {
next(new Parse.Error(Parse.Error.FILE_SAVE_ERROR, 'Invalid file upload.'));
return;
} Do we not have a req.body when I save a ParseFile in Parse-Swift-Server? |
Beta Was this translation helpful? Give feedback.
-
If it helps... the req.body when using JS CloudCode
vs when using Parse-Swift-Server
|
Beta Was this translation helpful? Give feedback.
-
I think I fixed it with a combination of my Parse-Server settings and iOS app changes. in short, Parse-Swift-Server problem this is not. |
Beta Was this translation helpful? Give feedback.
I think I fixed it with a combination of my Parse-Server settings and iOS app changes.
in short, Parse-Swift-Server problem this is not.