SkygearIO / skygear-SDK-iOS

Skygear SDK for iOS
https://skygear.io
Other
10 stars 28 forks source link

Fix unable to upload asset #101

Closed cheungpat closed 7 years ago

cheungpat commented 7 years ago

This happens because when obtaining a post URL from the server, the asset.url property is overwrite with server data. This change copies the asset object so that the file URL in the asset object can be used to upload the file to the server.

The SDK also blocks the client from trying to upload if the file has zero size.

connects #100

oursky-travis commented 7 years ago

@cheungpat, thanks for your PR! By analyzing the history of the files in this pull request, we identified @limouren to be a potential reviewer.

cheungpat commented 7 years ago

@rickmak should be fine now

cheungpat commented 7 years ago

Don’t merge. More fix pending.

cheungpat commented 7 years ago

@rickmak Should be fine now.