I have the “Allow file attachments” option enabled to the Orders, but I’m encountering an issue. When I try to upload files while transitioning an order to the “Delivered” status, the files are not being attached to the order. The status changes successfully, but the uploaded files no. Could you please check if this is a known issue or a bug in the delivery form?
I tried to upload PDF and Word. Neither of them could be uploaded. Which means that it is possible that none of the file types selected as allowed will be able to be uploaded. I have allowed the following file formats to be uploaded:
image/jpeg,
image/png,
image/webp,
image/avif,
video/quicktime,
video/mp4,
text/plain,
application/rtf,
application/pdf,
application/zip,
application/rar,
application/x-7z-compressed,
application/msword,
application/vnd.ms-powerpoint,
application/vnd.ms-excel,
application/vnd.openxmlformats-officedocument.wordprocessingml.document,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.openxmlformats-officedocument.presentationml.presentation,
application/vnd.oasis.opendocument.text
I was able to reproduce the issue locally. It seems there’s a bug affecting vendors, though everything works correctly with admin accounts.
We’ll fix this issue in the next Marketplace update. In the meantime, if this feature is crucial for your site, please let us know, and we’ll provide a temporary solution for you.
Thanks for your patience – we finally found the reason, and the issue will be fixed in the next HivePress & Marketplace updates. As a temporary fix, please add this code before the last line of hivepress-marketplace/includes/models/class-order.php file:
final public function get_user__id() {
return $this->get_seller__id();
}
Also, please change line 148 in hivepress/includes/controllers/class-attachment.php file from:
Please make sure that you’ve followed the instructions correctly (e.g., changed only line 148 without replacing any others). I’ve applied the provided fix, and the issue has been resolved: Attachment Fix | Loom.