code: def download(request):
      '''Saves image from URL and returns ID for use with AJAX script'''
      f = FileUpload()
      f.title = request.GET['title'] or 'untitled'
      f.description = request.GET['description']
      url = urllib.unquote(request.GET['photo'])
      file_content = urllib.urlopen(url).read()
      file_name = url.split('/')[-1]
      f.save_upload_file(file_name, file_content)
      f.save()
      return HttpResponse('%s' % (f.id)f download(request):
      '''Saves image from URL and returns ID for use with AJAX script'''
      f = FileUpload()
      f.title = request.GET['title'] or 'untitled'
      f.description = request.GET['description']
      url = urllib.unquote(request.GET['photo'])
      file_content = urllib.urlopen(url).read()
      file_name = url.split('/')[-1]
      f.save_upload_file(file_name, file_content)
      f.save()
      return HttpResponse('%s' % (f.id))
docs: Saves image from URL and returns ID for use with AJAX script