fixed bug in filenaming, added sns support, and delete files when upload finishes