• Resolved Marc_O

    (@marc_o)


    Hello,
    I’ve got a problem with the upload path of the plugin. I want the uploaded files to go to a folder named manuscrits in the uploads folder but i’ve tried a lot of configuration and the files always go to the folder uploads (in the current month sub folder).
    t first i though the plugin perhaps didn’t have the rights to write in the uploads folder so i made the manuscrits folder via ftp but the files keep going in the uploads folder. Can you help ?
    This is the shortcode i’m using :
    [wordpress_file_upload uploadpath=”wp-content/uploads/manuscrits” fitmode=”responsive” uploadpatterns=”*.pdf, *.doc, *.docx” maxsize=”20″ showtargetfolder=”true” subfoldertree=”{root}/{upload folder}” duplicatespolicy=”maintain both” uniquepattern=”datetimestamp” adminmessages=”true” debugmode=”true” placements=”userdata+userdata/filename/selectbutton/uploadbutton/progressbar/message” uploadtitle=”Envoyez-nous votre manuscrit” selectbutton=”Sélectionner un fichier” uploadbutton=”Envoyer votre fichier” successmessage=”Le fichier %filename% a bien été envoyé” warningmessage=”Le fichier %filename% a bien été envoyé, mais avec des avertissements” errormessage=”Le fichier %filename% n’a pas été envoyé” waitmessage=”Le fichier %filename% est en cours d’envoi” requiredlabel=”*” widths=”filename:400px, userdata:200px, userdata_label:200px” userdata=”true” userdatalabel=”Prénom|t:text|s:top|r:1|a:0|p:right|d:/Nom|t:text|s:top|r:1|a:0|p:right|d:/Email|t:email|s:top|r:1|a:0|v:1|p:right|d:|g:0″ userdatalabel2=”Parlez-nous de vous|t:multitext|s:top|r:1|p:right” medialink=”true” postlink=”true”]
    Thank you
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, this is because you are using medialink=”true” and postlink=”true”. When you instruct the files to be added to the Media folder, or be attached to the current post, they are saved to the default upload folder of WordPress and uploadpath attribute is ignored.

    Actually, when you instruct the files to be attached to the current post, they are also added to the Media folder, so setting medialink=”true” is not necessary.

    Nickolas

    Thread Starter Marc_O

    (@marc_o)

    Hello,
    I thought i didn’t use this settings and then totally forget it was on when i tried other settings.
    Thank you it work perfectly now.
    Marco

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t make upload path work :(’ is closed to new replies.