Offline handling for file upload

is there any plugin available to handle the following scenario
1.In poor or No network, mobile app should have functionality to save documents in the folder i.e in mobile app|
2.Once the network is availability , all save documents in mobile app should be automatically upload

please let me know i am using ionic 2 currently