Fixed the errors in retrieving attachments. Also limited the gui to only allow uploading one file at a time. Still some errors with prepending null to file names sometimes.

-Michael Perrone