New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload progress + PHP 7.2 #6177
Comments
What error? Roundcube supports also apc.rfc1867 (with apc.rfc1867_name) or session.upload_progress.enabled (with session.upload_progress.name), but I didn't test these recently. |
Error states that file could not be attached (red text popup).
Therefore it is my understanding that RC must now find a different way to support upload progress. |
I think apc.rfc1867 should work with APCu extension. |
Session handler does not work for me. It also looks that APCu 5.x does not support apc.rfc1867. I found some hints on https://www.drupal.org/project/drupal/issues/2718253. There's php-uploadprogress package on ubuntu that is supposed to work with PHP 7.2, but does not work for me for unknown reason. |
In https://bugs.php.net/bug.php?id=74131 the problem is confirmed and suggested that the only option is to use HTML5 ajax progress event. This might be not that bad idea. However, it does not work with all browsers and implementation will take time. We probably will need a fallback to old upload method, can be with disabled progress. |
Replaced all old upload progress code in favour of ajax upload progress. Instead of posting a hidden iframe, we now use AJAX (as we did for drag-n-drop). Removed code for old browsers. Now we support IE >= 10, Firefox > 4. Upload progress may not work in some more, but support is quite good.
Proposed solution in #6583. @thomascube what do you think? how about merging it for 1.4? |
@alecpl Looks good. The new approach includes |
The new approach removes all apc/session/uploadprogress related code. We'll be HTML5-only from now on. |
To clarify, by HTML5-only I mean upload progress is javascript-client-side thing. Also much better for performance. |
I use debian repo https://packages.sury.org/php/ it has php 7.1, 7.2, 7.3 and package php-uploadprogress for all these versions I think it's not roundcube problem |
Replaced all old upload progress code in favour of ajax upload progress. Instead of posting a hidden iframe, we now use AJAX (as we did for drag-n-drop). Removed code for old browsers. Now we support IE >= 10, Firefox > 4. Upload progress may not work in some more, but support is quite good.
HTML5 solution merged into master. |
Hello.
What is the current way to enable upload progress in RC+PHP 7.2; uploadprogress pecl extension does not compile anymore. Found one that claims it works (https://github.com/Jan-E/uploadprogress), it compiles fine but RC does not attach files, it produces an error.
RC = 1.3.2
Thanks
The text was updated successfully, but these errors were encountered: