Comments (9)
Done -- many thanks for the contribution!
from alloweduploads.
Thanks @asmecher,
Note that there is still the small problem with the delayed error notification which appears on at the third stage of the file upload wizard. But I have a feeling there is not much I can do about that because I have seen similar delays in other parts of OJS as well. If you do not know what I mean, try to upload a file that is not allowed and then go through the upload wizard with an allowed file. The problem does not affect the way the plugin works but it is a bit weird that the errors appear in the end.
from alloweduploads.
@ajnyga, I think that's a flaw in the error handling code for the file upload wizard. Can you try the changes at pkp/pkp-lib#3488 and see if that works for you?
from alloweduploads.
Hi @asmecher if I apply those changes to 3.1.0.1 code I get:
[18-Mar-2018 20:35:11 Europe/Helsinki] PHP Warning: assert(): Assertion failed in lib/pkp/controllers/wizard/fileUpload/form/SubmissionFilesUploadForm.inc.php on line 73
[18-Mar-2018 20:35:11 Europe/Helsinki] PHP Warning: in_array() expects parameter 2 to be array, null given in lib/pkp/controllers/wizard/fileUpload/form/SubmissionFilesUploadForm.inc.php on line 178
[18-Mar-2018 20:35:11 Europe/Helsinki] ojs2: Invalid uploader roles!
and upload gets stuck.
This happens only with the file types that are not allowed so the error is triggered by the error handling.
from alloweduploads.
Hi @asmecher
Here is the latest release for OJS 3.1.1.2: https://github.com/ajnyga/allowedUploads/releases/tag/v.1.0.0.2
Note that hte problem above is probably still there?
from alloweduploads.
@ajnyga, sorry for the delay. Just to clarify, what versions of OJS and OMP are this release compatible with? The last release was compatible with...
<compatibility application="ojs2">
<version>3.1.0.0</version>
<version>3.1.0.1</version>
<version>3.1.1.0</version>
<version>3.1.1.1</version>
<version>3.1.1.2</version>
</compatibility>
<compatibility application="omp">
<version>3.1.0.0</version>
<version>3.1.0.1</version>
<version>3.1.1.0</version>
<version>3.1.1.1</version>
<version>3.1.1.2</version>
<version>3.1.1.3</version>
</compatibility>
Thanks!
from alloweduploads.
Should be the same. The changes just removed one warning and added support for uppercase extension names. And I updated the license to GPL3. So nothing that should affect compatibility I think.
from alloweduploads.
@ajnyga, sorry for the delay -- I see https://github.com/ajnyga/allowedUploads/releases/tag/v.1.0.0.2 is noted as supporting 3.1.1-2 and newer, so I've updated the plugin gallery accordingly. Is that OK, or does that title need moving (and I can move it back to older versions)?
from alloweduploads.
Hi,
Yes that release should be ok to use. The only change I have made since is moving to GPL3 (trying to remember to do this for all my plugins). But I will add that to the next release. I probably need to update this plugin for 3.2 anyway because of smarty 3
from alloweduploads.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alloweduploads.