Easiest way to display uploaded (image)file?
问题 I'm trying to my first attempt at django file-uploading, and all i need at the moment is a way to display an uploaded image (png/jpg) to the user that uploaded. No need to save it anywhere. My views.py: (i'm using django forms, btw) if request.method == 'POST': form = UploadFileForm(request.POST, request.FILES) if form.is_valid(): upFile = request.FILES['upFile'] f={"upFile":upFile} return render_to_response('upload2.html', f) And i can, as expected, display the name and size of my file in