Skip to content

Conversation

@nicooprat
Copy link
Contributor

You can try in your browser console:

Meteor.connection.disconnect();
// Then try to upload a file
Cloudinary.collection.find().fetch();
// Returns the local picture object
Meteor.connection.reconnect()
// If no error in request signing, the upload begins
// else, the picture is removed from the local collection

nicooprat added 3 commits June 2, 2016 13:48
Pictures are inserted in local collection, before checking connection and signing with Cloudinary API.

You can try in your browser console:

Meteor.connection.disconnect();
// Then try to upload a file
Cloudinary.collection.find().fetch();
// Returns the local picture object
Meteor.connection.reconnect()
// If no error in callback, the upload begins
// else, the picture is removed from the local collection
Stores file in local collection before signing Cloudinary request. Local documents are deleted if signing fails. If it succeed (now or at next connection), everything resume normally.
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

Successfully merging this pull request may close these issues.

1 participant