Skip to content
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

Allows offline #91

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Allows offline #91

wants to merge 3 commits into from

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

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