Attach file issue

in Download Manager Free

Viewing 7 posts - 1 through 7 (of 7 total)
Mar 22, 2023 at 3:45 am
#185119
Participant
Cam E
OP

Was unable to attach any files to new wpdm posts, similar to others in the forum once I uploaded the file it would appear successful and no error message, and upon checking the filesystem and post meta table, the files did indeed upload but the post meta was blank.

Upon further investigation, it appears that in the FileSystem->absPath function, your calling realpath to resolve any symlinks but later on in allowedPath your checking against a few different paths that weren’t ran through realpath. So allowedPath ends up returning an empty string if the WordPress directory happens to be symlink. I’m using Bitnami’s fairly popular WordPress package, which happens to use a symlink. So this might be a common enough issue for other users.

Mar 22, 2023 at 4:45 am
#185121

Hello,

Thank you for writing to us.
It is hard to determine the issue without looking at your website.

I request you to please share your website credentials in a private reply so that I can take a closer look and work with you to get this working.
Here are the details I’ll need –
# Website Login URL 
# Username
 # Password
Looking forward to hearing from you.

Mar 22, 2023 at 7:11 am
#185124
Participant
Cam E
OP

It’s not a public site and I can’t make it public, but you should have enough information to look into the issue.

Mar 22, 2023 at 5:15 pm
#185157
Keymaster
Shahjada
Staff

Try using add_filter("wpdm_allowed_path_check", "__return_false");

Mar 22, 2023 at 8:29 pm
#185163
Participant
Cam E
OP

Yup, that works. It’s a better than solution than I had of modifying the code (removing realpath call), but will this potentially break anything?

Mar 23, 2023 at 3:23 am
#185176
Keymaster
Shahjada
Staff

no

Mar 23, 2023 at 9:30 am
#185187
Participant
Cam E
OP

Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

The topic "Attach file issue" is closed to new replies.