--===============1410277295316702469== Content-Type: multipart/alternative; boundary=bcaec554d63c96868004c2486868 --bcaec554d63c96868004c2486868 Content-Type: text/plain; charset=ISO-8859-1 Hello, ownCloud. I was investigating the "PDF Viewer is not working" report [1]. And I have found that all default actions specified in full form as app/mime will not work for OC 4.x since all data-mime attributes are postfixed with the ; character while actions triggered by mimepart work fine. Thus, * FileActions.register('application/pdf;','Edit','',function(filename){* * * will work but *FileActions.register('application/pdf','Edit','',function(filename){* * * won't. For now I have fixed it locally by adding to *FileActions.getDefault * function *mime = mime.replace(';', '');* * * as the very first line but I would like to know what is the purpose for this suffix? [1] http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-917 --- Best regards, Victor Dubiniuk --bcaec554d63c96868004c2486868 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello, ownCloud.

I was investigating the &quo= t;PDF Viewer is not working" report [1].
And I have found th= at all default actions specified in full form as app/mime will not work for= OC 4.x since all data-mime attributes are postfixed with the ; character w= hile actions triggered by mimepart work fine.

Thus,

=A0FileActions.register('app= lication/pdf;','Edit','',function(filename){
<= div>
will work but

FileActio= ns.register('application/pdf','Edit','',function(fi= lename){

won't.

For now I have fixed it locally by adding to FileActions.getDefault=A0<= /b>function

mime =3D mime.replace(';', '');
as the very first line but=A0I would like to = know what is the=A0purpose for this s= uffix?=A0

[1] http://bugs.owncloud.org/thebuggenie/owncloud/issues/o= c-917


---
Best regard= s,
Victor Dubiniuk


--bcaec554d63c96868004c2486868-- --===============1410277295316702469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Owncloud mailing list Owncloud@kde.org https://mail.kde.org/mailman/listinfo/owncloud --===============1410277295316702469==--