debugged primitive file uploader.Works for multiple text based documents and single images