Getting dimension information of the uploaded file
Hello friends, no matter what I did, I could not get and use the height information of an uploaded .png file. It seems like it would be very easy, but I couldn't succeed.
What I need is to get the height information of the uploaded file and make pricing with it. Therefore, I either need to assign it to product height or assign it to a global variable. But I could not manage to get the height information of the uploaded file. I really need your help. Thanks in advance.
As a small addition, I slightly modified the accepted files. I made a few additions, but I still get an error when I want to upload a file of the file types I added. I think I need to add it to another page. If you have any information, I would like to benefit from it.
Hi, The file is uploaded to a temporary folder when adding a product to the cart. At this stage, you can use the information contained in the cart (cart item data), take the path of the PNG files and read the height and width. Values will not be available in the price calculator. When creating an order, files from the temporary directory are moved to the target directory (defined in the plugin settings)
pon., 22 kwi 2024 o 21:08 Hasret Güney Arslan @.***> napisał(a):
Hello friends, no matter what I did, I could not get and use the height information of an uploaded .png file. It seems like it would be very easy, but I couldn't succeed.
What I need is to get the height information of the uploaded file and make pricing with it. Therefore, I either need to assign it to product height or assign it to a global variable. But I could not manage to get the height information of the uploaded file. I really need your help. Thanks in advance.
— Reply to this email directly, view it on GitHub https://github.com/piatkowski/wckalkulator/issues/36, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPLL24R7NMUAJMRHOPZY3LY6VN4XAVCNFSM6AAAAABGTLHJMGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TOMRXGM2DIMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Krzysztof Piątkowski