[buddypress-trac] [BuddyPress Trac] #8336: Cover Image Cannot be Uploaded on Windows Server using the REST endpoint

buddypress-trac noreply at wordpress.org
Thu Jul 30 22:11:29 UTC 2020


#8336: Cover Image Cannot be Uploaded on Windows Server using the REST endpoint
-------------------------+--------------------------
 Reporter:  oddev56      |       Owner:  espellcaste
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  7.0.0
Component:  REST API     |     Version:  6.1.0
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+--------------------------
Changes (by imath):

 * keywords:  has-patch =>


Comment:

 Hi @oddev56 I'm sorry but we have nothing to change there. The WordPress
 function `validate_file()` must return `0` to validate the file, otherwise
 something is wrong with the file. If you get the error code `1` then it
 means the file path you used is either:
 - equals to `../` which is forbidden,
 - has more than one occurence of `../` which is not allowed,
 - or has `../` not occuring at the end of the path which is not allowed.

 Are you filtering the default BuddyPress upload path? If so remove your
 filter and test again, imho the path you're returning to the upload path
 filter is not good.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8336#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list