Giter Site home page Giter Site logo

Comments (11)

bu3tt1 avatar bu3tt1 commented on September 21, 2024 1

hanks @bu3tt1, wich program uses the correct mimetype? I tried using Winrar and 7zip, from a Linux server compress in zip, gz and tgz (before I enabled these mimetypes), but with the same result.

I can't be of much help, I tested with an Apple

Btw I tried to change the mimetypes.php file but the owner´s file is root, and i doesn't have this password.

Normally you should mount the file on your host to a file containing the change.

In any case we are working on the new version which will contain the mimetype.

from passwordcockpit.

samuelecavalleri avatar samuelecavalleri commented on September 21, 2024 1

Opened a pull request to add this mimetype.

passwordcockpit/backend#20

Will be solved in version 1.3.4

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on September 21, 2024

Please, enable debugging mode with PASSWORDCOCKPIT_DEBUG: true and send the description of the error.

from passwordcockpit.

geo2306 avatar geo2306 commented on September 21, 2024

Hi, this is the output from the message error:
Undefined array key "application/x-zip-compressed"

imagen

from passwordcockpit.

geo2306 avatar geo2306 commented on September 21, 2024

Hi @bu3tt1 I´m getting error message:
Undefined array key "application/x-zip-compressed"

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on September 21, 2024

Hello,

the mimetype "application/x-zip-compressed" is deprecated.
Would it be possible to generate the ZIP through a newer application that then uses the correct mimetype?
To correct the problem yourself quickly you can mount and overwrite the file https://github.com/passwordcockpit/backend/blob/master/config/autoload/mimetypes.php and add the desired mimetype.
We plan to add the mimetype in the next version that is yet to be planned.

Best regards

from passwordcockpit.

geo2306 avatar geo2306 commented on September 21, 2024

Hello,

the mimetype "application/x-zip-compressed" is deprecated. Would it be possible to generate the ZIP through a newer application that then uses the correct mimetype? To correct the problem yourself quickly you can mount and overwrite the file https://github.com/passwordcockpit/backend/blob/master/config/autoload/mimetypes.php and add the desired mimetype. We plan to add the mimetype in the next version that is yet to be planned.

Best regards

Thanks @bu3tt1, wich program uses the correct mimetype? I tried using Winrar and 7zip, from a Linux server compress in zip, gz and tgz (before I enabled these mimetypes), but with the same result. Btw I tried to change the mimetypes.php file but the owner´s file is root, and i doesn't have this password.

from passwordcockpit.

geo2306 avatar geo2306 commented on September 21, 2024

hanks @bu3tt1, wich program uses the correct mimetype? I tried using Winrar and 7zip, from a Linux server compress in zip, gz and tgz (before I enabled these mimetypes), but with the same result.

I can't be of much help, I tested with an Apple

Btw I tried to change the mimetypes.php file but the owner´s file is root, and i doesn't have this password.

Normally you should mount the file on your host to a file containing the change.

In any case we are working on the new version which will contain the mimetype.

Thanks @bu3tt1, yesterday I solved enabling bz2 mimetype and compress with 7zip, but also was required enable iso and bin mimes because the file was detected as application/octet-stream.

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on September 21, 2024

To add 'xzipcompressed'=>'application/x-zip-compressed' in https://github.com/passwordcockpit/backend/blob/master/config/autoload/mimetypes.php

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on September 21, 2024

With the version 1.3.4 you can use:

PASSWORDCOCKPIT_UPLOAD_ACCEPTED_MIMETYPES : 'xzip'

from passwordcockpit.

bu3tt1 avatar bu3tt1 commented on September 21, 2024

Version 1.3.4 image has been released.
Thank you for giving us feedback related to the mimetype problem.

from passwordcockpit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.