upload to write directory