corrected gets behavior when using command line argument with upload.rb