Attach file issue

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

Cam E
Participant

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.

#185121

Sagar Barua
Blocked

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.

#185124

Cam E
Participant

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

#185157

Shahjada
Keymaster

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

#185163

Cam E
Participant

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?

#185176

Shahjada
Keymaster

no

#185187

Cam E
Participant

Thanks!

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

The topic ‘Attach file issue’ is closed to new replies.