Kevin Hankens posted an issue in Plupload's integration module a while ago. He complained about the way how module invokes file_validate() at uploads. After a bit of research I agreed with him.
Plupload module invokes file_validate() with file object that carries nonexistent file uri. Uri, that is passed to validation, is representing a location where file is supposed to be uploaded. At that moment the file is actually located on a completely different (temporary) location. Validation hooks are unable to load file and do various of operations as a result of this.
We propose a patch that fixes this. Problem is, that this solution also breaks API compatibility. As this issue definitely needs to be fixed, I'd still not like to commit something, that would make people willing to kill me. :)
I invite all developers with interest in Plupload to check this issue and provide feedback.





Comments
increment the major version number
Submitted by dalin (not verified) on
When the major version number increments it is to indicate an API breaking change.
Problem solved.
I was also thinking about
Submitted by slashrsm on
I was also thinking about this :)
Drupal's Plupload integration - file_validate() | Janez Urevc
Submitted by investasi (not verified) on
I savor, result in I discovered just what I used to be
looking for. You've ended my 4 day lengthy hunt! God Bless you man. Have a nice day. Bye
Drupal's Plupload integration - file_validate() | Janez Urevc
Submitted by computersource (not verified) on
I was wondering if you ever thought of changing the page layout of your site?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so
people could connect with it better. Youve got an awful lot of text for
only having one or 2 images. Maybe you could space it out better?
Drupal's Plupload integration - file_validate() | Janez Urevc
Submitted by injustice gods ... (not verified) on
Heya i'm for the primary time here. I came across this board and I find It truly useful & it helped me out much. I hope to offer one thing back and help others like you helped me.
Add new comment