variation of upload using string

- upload file using a string, instead of using a physical file. Good if you're on a hosting platform which doesn't support writes.
- #TODO: refactor the two variations of upload, instead of copy/paste