Plupload https://janezurevc.name/ en Drupal's Plupload integration - file_validate() https://janezurevc.name/drupals-plupload-integration-filevalidate <span>Drupal's Plupload integration - file_validate()</span> <span><span lang="" about="https://janezurevc.name/users/slashrsm" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">slashrsm</span></span> <span>Mon, 19.11.2012 - 09:39</span> <div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"><p><a href="https://drupal.org/user/78090">Kevin Hankens</a> posted <a href="https://drupal.org/node/1814744">an issue</a> in <a href="https://drupal.org/project/plupload">Plupload's integration module</a> a while ago. He complained about the way how module invokes <em>file_validate()</em> at uploads. After a bit of research I agreed with him. </p> <p>Plupload module invokes <em>file_validate()</em> with file object that carries nonexistent file uri. Uri, that is passed to validation, is representing a location where file <strong>is supposed to be uploaded</strong>. 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.</p> <p>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. :)</p> <p>I invite all developers with interest in Plupload to check <a href="https://drupal.org/node/1814744">this issue</a> and provide feedback. </p> </div> Mon, 19 Nov 2012 08:39:36 +0000 slashrsm 50 at https://janezurevc.name