Phil Brunet on "[Plugin: File Away] Default access permission for directory"

ساخت وبلاگ

Phil Brunet
Member
Posted 19 hours ago #

Hi,

I was wondering if there's a way to change the default access permission when a directory is created? By default, mine is 755 but I'd like it to be 775 for newly created directory and recursively applied.

I can change it manually, but it's not realistic in my situation.

Does File Away or the server controls that? Is there a way to tweak it?

Thank!

https://wordpress.org/plugins/file-away/

Phil Brunet
Member
Posted 19 hours ago #

Can I just go inside class.fileaway_management.php and change all 0755 for 0775? Any downsides in doing so?

*Edit : I just tried it and it doesn't work, probably not the way to go

No downsides. You'll have to do that.

Phil Brunet
Member
Posted 14 hours ago #

Hi Thom, thanks for your input.

I tried uploading some files after making those changes to management.php and the directories permissions were still 0755

This is the shortcode I'm using to display the upload form on the website :

[fileup sub="fa-firstlast/folder-xyz/directory-xyz/" makedir="true" matchdrawer="true" uploadlabel="Upload"]

Is it possible to set the permissions for all sub directories (firstlast, folder-xyz, directory-xyz) to 0775 when creating them?

If you're changing the source code to 0775 and it still creates them as 0755, that's not something I can do much about. If you tell php to do one thing, and you get different results, it's probably not a problem with the function itself.

Phil Brunet
Member
Posted 4 minutes ago #

Yes I understand that, I was just wondering if I was missing something obvious.

Thanks!

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 60 تاريخ : پنجشنبه 27 اسفند 1394 ساعت: 21:27