Jump to content

Mustafa-Online

Members
  • Posts

    75
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mustafa-Online

  1. @kongondo -- Yes I have  jqfu & uploads folders. I also modeified the post_max_size so it's bigger than upload_max_filesize

    I get this in network tab >> Notice: Media Manager: No valid media found to add to Media Library

    trc.thumb.PNG.9795df1c6467514111bffb52d9e73ee4.PNG
     



    mdddd.PNG.c61f265e9aa42d02b089273cfb5f3f80.PNG

    media-1.PNG.3168054007b428906ec641b783241c7e.PNG
     

    One More thing: I checked again, all the files I tried to upload are available in PW assets folder!
     

  2. @kongondo

    • post_max_size = 512M
    • memory_limit = 512M
    • file_uploads = On
    • upload_max_filesize = 2G

    --------------------------------------------

    • What are you trying to upload: I tried almost every type (jpeg png pdf doc docx ppt mp3 mp4)
    • Are they perhaps smaller/larger than what you have in the settings? I even tried 3kb file size with no luck
    • Is this a multilingual site? No It's a fresh installtion
    • ProcessWire version: PW Dev 3.0.156
    • PHP version: 7.2.27
  3. I do it this way: i define a config->local then :

    /**** Config Enviroment **********/
    $config->local = true;

    if($config->local == true) {
        $config->debug = false;
        $config->dbHost = 'localhost';
        $config->dbName = 'dbname_on_local';
        $config->dbUser = 'user_on_local';
        $config->dbPass = '*********';

    else {
        $config->debug = false;
        $config->dbHost = 'localhost';
        $config->dbName = 'dbname_on_server';
        $config->dbUser = 'user_on_server';
        $config->dbPass = '***********';
    }

    And just toggle $config->local value between true / false

    • Like 1
  4. 16 minutes ago, Tom. said:

    I think giving the user everything even if they don't need it

    You are absolutely right, but there must a way to restrict that behavior; for example: disable adding images in a video area ..etc / It doesn't have to be that cluttered.

    I don't know if the Drupal guys are OK with it, I will give it a try.

×
×
  • Create New...