file uploading now works, but not in the preferred way. might be bad for large files, but it works perfectly for now.