I want to create a preview image before the actual form upload. I have a preview button for the user to first look at the photo be开发者_JAVA技巧fore submitting it. Once the use clicks the preview button, what is the best way in django to respond with an image without actually saving the image?
Thank you!
Pass a file-like such as StringIO to the HttpResponse constructor that contains the image data.
加载中,请稍侯......
精彩评论