Adding switch capability

The '-u' switch sets a variable to allow uploading
The '-i' switch sets the id of the temp file

The '-i' functionality allows the same script to keep its tmp file
throughout the run, but allow concurrent runs.