Coder Social home page Coder Social logo

Comments (6)

qky666 avatar qky666 commented on August 11, 2024

Hi,
I've been testing this, and I don't know whats happening, but it seems that there is a problem here. What I see is that "larger" files are uploaded (I've tested with a 13MB file), but the process that converts it to dokuwiki syntax never ends. The browser gives me a timeout. I'll try to investigate this, but my PHP skills are not so good...

from dokuwiki-plugin-odtplus2dw.

conanedogawa2 avatar conanedogawa2 commented on August 11, 2024

Hi,
Thanks for your reply.

What happen if you try with smaller files ? Like 5 to 10 mo.

It's not showing me timeout, but
"odtplus2dw : er_file_upload : Something went wrong with the file's upload : 1
odtplus2dw : er_checkUploadResult : Something is wrong with the uploaded file
odtplus2dw : er_pg_dir : Unable to remove the temporary directory : /
"
And this almost instantly since the file is more than exactly 2Mo.

Since those errors appears every time something bad is done, i dont't really think this is helpful.
I tried with verbose log enabled but there is no more logs than what is displayed in th UI.

Have a good day :).

from dokuwiki-plugin-odtplus2dw.

qky666 avatar qky666 commented on August 11, 2024

Hi,
Mmmm... This is not happening to me. I tested it again (with different files) and it worked even with a 10Mb file (maybe the file I was using yesterday has something that breaks conversion, with some others it works ok).
I get the errors you get only when I push "upload" without previously selecting a file... Not sure what is happening to you.
By the way... Have you updated the plugin to the latest version? There was a problem with file names containing spaces. Don't know if that is the problem, but maybe you can try.

from dokuwiki-plugin-odtplus2dw.

conanedogawa2 avatar conanedogawa2 commented on August 11, 2024

I made the update annndd... :

odtplus2dw : er_file_upload : Une erreur s'est produite avec le fichier envoyé : 1
odtplus2dw : er_checkUploadResult : Le fichier envoyé semble incorrect
odtplus2dw : er_pg_dir : Suppression du répertoire temporaire impossible : /

In french this time :).
I tried with a very long Lorem Ipsum text, same error. (4mo)
I don't understand why this is happening. I suspect the maxFileUpload parameters fulfilled in the conf UI isn't taken since it happens only with odtplus2dw.

from dokuwiki-plugin-odtplus2dw.

qky666 avatar qky666 commented on August 11, 2024

I really don't know how to help you... The only place in code where MaxFileSize is used is in hidden tag name="MAX_FILE_SIZE" (I think), so if it is working OK there should be no problem

from dokuwiki-plugin-odtplus2dw.

mr-floppy avatar mr-floppy commented on August 11, 2024

The MAX_FILE_SIZE field seems to have no effect indeed.

What you have to do is to allow you php.ini to upload bigger files.
https://www.dokuwiki.org/faq:uploadsize

It is not enough to adjust the nginx config. You have to make sure

php_value upload_max_filesize 2M
php_value post_max_size 8M

are big enough. Otherwise dokuwiki will reject the upload.

You can check the value easily via the dokuwiki upload page.
It says something like "Max. 2 MB per File-Upload." on the bottom, which is a value it gets directly from the php.ini
https://forum.dokuwiki.org/thread/9462

P.S.: This is of course still true for https://github.com/qky666/dokuwiki-plugin-file2dw

from dokuwiki-plugin-odtplus2dw.

Related Issues (3)

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.