问题
First of all congrats to everyone for a great job.
swfupload is a very good and quality tool.
My question would be, is there any method in the script to check the dimensions of the image and if the dimensions are not correct display warning popup and not save the image.
Thanks in advance.
回答1:
First of all congrats to everyone for a great job.
Why, thank you! I'm also rather pleased with the progress I've made today. ;)
is there any method in the script to check the dimensions of the image
I'm pretty sure this can be done by tweaking SWFUpload's source but I don't know whether that function is available in "native" form. What SWFUpload can do in its new 2.5 version, though, is resize images on the client side. I gather it is possible to set fixed dimensions for that. Maybe that works for you?
来源:https://stackoverflow.com/questions/2738268/swfupload-get-image-dimensions