Jump to content

Search the Community

Showing results for tags 'image upload invalid'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. hi folks! I just upgraded my DEV environment to PW 2.5.3 and tested if everything will work. Unfortunately my custom image upload in the admin interface is broken. It keeps telling me that the image is invalid. As far as it worked with 2.4 I think it is a problem with the new version unless I haven't changed any code. following situation / workflow 1) Upload an image to a temporary destination (because the image has to be modified before finally added to a page) 2) Process inputform with the "regular" processInput method. Here the error is thrown 3) Make some custom stuff (e.g. image transformation, changing page title) 4) add image from temporary path directly to the page I checked what has changed in the InputfieldImage.module and I found these lines (see at Github: https://github.com/ryancramerdesign/ProcessWire/commit/aa58e7b6d8e6c78d76a2efff4bd9e020682d8115) if(!$pagefile->width) { $pagefile->unlink(); throw new WireException($this->_('Invalid image')); } If I dump the pagefile object I see that it contains data about the uploaded image (e.g. basename) but no width. Unfortunately I have no idea why the pageimage does not contain the width at all. I can't even find where the width is set... I hope someone has an idea. Thanks in advance! // EDIT if I comment out the above mentioned lines it works perfectly as expected. But I am still searching for the best approach
×
×
  • Create New...