added upload redirect loop