Fork me on GitHub

CmodulesDownload and filesize  Bottom

Go to page 1 - 2 [+1]:

  • Searched forums and google but didn't find...

    Installed CmoduleDownloads v 1.92.1

    Works great. Increasing filesize upload help needed. I entered a larger number, like 10 megs, for allowed filesize. I also increased the upload filesize limit in php.ini.

    Still fails. Any help on where to look to increase the filesize upload limits for this module, and for the system as a whole?

    tx for any help.

    drhiii
  • Do you mean CmodsDownload 1.9.2?
  • Hello. Yes. My mistake. 1.9.2.

    Can you help? This would be fantastic if yes.


    Lindbergh

    Do you mean CmodsDownload 1.9.2?
  • I will have a look at this part of the code.
    I'm sure we find a solution for this problem.

    Lindbergh
  • This would be most excellent. It is a terrific module. Well done in its function and appearance. I thought about looking at what may be causing this, but I would far rather hear from the author of the code for help!

    tx very much. It is a great application.

    drhiii



    Lindbergh

    I will have a look at this part of the code.
    I'm sure we find a solution for this problem.

    Lindbergh
  • Open admin.php and goto line 2222.
    You will find there the followig code:

    ._LIMITSIZE." :"

    replace this line with :

    ._LIMITSIZE." :"

    Should work up to 99 megs

    Regards

    Lindbergh
  • Hello Lindebergh,

    I did as you instructed it is still fails.

    First, I found the code on line 2263 instead of 2222. So makes me wonder if I have the same code. I do have v1.9.2 installed as reported by the admin screen.

    Next, I am able to upload other large files into a Photo gallery so I know the PHP variable is set high enough.

    Next... I looked at the code and wondered if the limisize variable should have been limit_size so I tried that as this is what is reflected in another PHP file. That didn't work either.

    I then made sure the Limit value inside the admin screen for Cmdownload was set lower than the maximum limit of the php.ini file. That also didn't work.

    Sooooo, am stuck again. Do you have futher ideas or advice on what I need to look at? Files still work just below the 2M filesize, but now above them. Same characteristics as before.

    Oh, here is a small snapshot of the Cmodownload screen and the fact that it is showing the correct upload sized value that was input into the admin screen:

    · _MODBANNEDEXTENSION
    .swf .jsp .php .php3 .php4 .phtml .pl .com .bat .exe
    · _MODECHOLIMIT 47.68 MB

    This is correct as it reflects the value input into the Cdownload admin screen. And php.ini is set to 75M.

    regards, drhiii





    Lindbergh

    Open admin.php and goto line 2222.
    You will find there the followig code:

    ._LIMITSIZE." :"

    replace this line with :

    ._LIMITSIZE." :"

    Should work up to 99 megs

    Regards

    Lindbergh
  • Here is another question. Where are these values stored? pninit.php appears to contain the default values, but I couldn't find in the filesystem anywhere where these values are contained, and I couldn't find these value in mysql either. Just wondered as I figured I could just go change the default values, but I haven't been able to locate them.

    Of course, it would be better to have the values reflected from the admin screen and working than trying to mess with the code base I think.

    Will await your instructions.

    drhiii



    Lindbergh

    Open admin.php and goto line 2222.
    You will find there the followig code:

    ._LIMITSIZE." :"

    replace this line with :

    ._LIMITSIZE." :"

    Should work up to 99 megs

    Regards

    Lindbergh
  • Can you please post the complete error message? I can't reproduce this error.
    This would help me a lot.


    Regards

    Lindbergh
  • Here is the information I can locate. I uploaded a 4 MB file. Anything under 2MBs works fine. The first entry is the access log for apache when starting the upload. This is the only entry in either the access log or error log:

    xxx.xxx.xxx.xxx - - [26/Apr/2005:03:00:25 -0600] "GET /modules.php?name=CmodsDownload&req=AddDownload HTTP/1.1" 200 15809


    Here is the resulting screen in CmodDownload. It simply says I need to type in a URL for the file, which I assume means it has failed because it thinks the file is too large for the limitsize variable:


    Downloads

    [ Main download area | Add download | New | Popular | Top-rated ]
    ERROR: You need to type a URL for your download!

    [ Back ]





    Here are my php.ini and a slice of the CmodDownload setup screen. I keep trying to locate where these variables are stored but cant find where the values are stored. I thought I could figure it out myself, but I dont see it. Hope this helps. Sure is a mystery to me.... am wondering if I need to increase the max_execution time. I will try that anyway.


    php.ini

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request dat
    a
    memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
    ; Maximum size of POST data that PHP will accept.
    post_max_size = 64M


    In the Admin CmodDownload Screen:

    Allow users to upload files Yes
    Secure Download Yes No (I have tried Yes and NO)
    Sizelimit for files Yes No (I have tried Yes and No)
    Size (1048576 = 1 MB) : 55000000



    Lindbergh

    Can you please post the complete error message? I can't reproduce this error.
    This would help me a lot.


    Regards

    Lindbergh
  • Maybe you changed the wrong part of your php.ini.

    For fileupload and the size of the uploaded file you have to change this part.

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 75M


    You will find the stored variables in yourprefix_module_vars table.

    Regards

    Lindbergh
  • Hm, am looking for this now.

    Where would the "yourprefix_module_vars table" be found?

    tx for your continued help. I know the solution will end up being easy. I just don't see it yet.



    Lindbergh

    Maybe you changed the wrong part of your php.ini.

    For fileupload and the size of the uploaded file you have to change this part.

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 75M


    You will find the stored variables in yourprefix_module_vars table.

    Regards

    Lindbergh
  • Have look to your postnuke database and you will find it. wink
  • Hi, me again. I am in the data base and see the module_vars table, but I don't know what to do from here. Am using phpMyAdmin.




    drhiii

    Hm, am looking for this now.

    Where would the "yourprefix_module_vars table" be found?

    tx for your continued help. I know the solution will end up being easy. I just don't see it yet.



    Lindbergh

    Maybe you changed the wrong part of your php.ini.

    For fileupload and the size of the uploaded file you have to change this part.

    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 75M


    You will find the stored variables in yourprefix_module_vars table.

    Regards

    Lindbergh
  • Change yor php.ini and try again an upload.
    You don't have to change anything in module_vars table. It was only for your information.

Go to page 1 - 2 [+1]:

This list is based on users active over the last 60 minutes.