Images and video
Returns with North Return Manager
Customers can add photos and films to a case, so you can see the fault or the damage before anything is sent back. The files are stored in a protected folder on your own site, not in the media library. Only the shop can open them, and they are deleted automatically some time after the case is closed.
Choose when files are asked for
Go to the return settings, section Case types. With North Return Manager only, that is WooCommerce → Settings → Returns. With North Shipping Manager it is Shipping Manager → Settings → Returns.
Under Photos and video , choose:
| Choice | Return | Complaint and transport damage |
|---|---|---|
| Required for complaints and transport damage (default) | Optional | Required |
| Optional for all cases | Optional | Optional |
| Do not ask for files | No upload | No upload |
When files are required, a link to larger files is enough instead.
Number, size and links
| Setting | What it does | Default |
|---|---|---|
| Max number of files | How many files the customer can add to one case. From 1 to 10. | 5 |
| Max size per file (MB) | The largest file the customer can upload. From 1 to 100. | 10 |
| Link to larger files | Lets the customer paste a link (WeTransfer, YouTube …) for files that are too large. | On |
| Keep files (days) | Uploaded files are deleted this many days after the case is closed. From 7 to 3650. | 180 |
Your server also has its own upload limit. If it is lower than Max size per file (MB) , the server's limit applies. The customer always sees the limit that applies.
File types
The plugin checks each file's real type, not only its name.
| Kind | File types |
|---|---|
| Images | JPG, PNG, GIF, WEBP, HEIC and HEIF |
| Video | MP4, MOV and MPEG |
The same list is used everywhere: in the upload box the customer sees, in the help text under Max size per file (MB) (Accepted files: JPG, PNG, GIF, WEBP, HEIC, HEIF, MP4, MOV, MPEG. The server also has its own limit.), in the error message and in the file picker, which only offers these types.
Photos from an iPhone are often HEIC. They are accepted, but most browsers cannot show them, so they appear as a file icon in the case instead of a preview. Click the file to open or download it.
What the customer does
In step 3 of the form, under Photos or film:
- The customer drags the files to the box Drag and drop files here, or click to choose, or clicks it to choose.
- The box shows how many files are chosen and their names.
- If a film is too large, the customer shares it through WeTransfer, Sprend, YouTube or similar, and pastes the link under Link to larger files (optional).
Under the box the customer sees the limits, for example JPG, PNG, GIF, WEBP, HEIC, HEIF, MP4, MOV, MPEG • Max 10 MB per file • Up to 5 files.
Read the whole form in The customer's return portal.
Where you see the files
Open the return under Returns. The files are under Photos and video:
- Images are shown as small previews. Click one to open it in a new tab.
- Films and HEIC images are shown as an icon with the file name and size.
- A link from the customer is shown as Link from the customer: followed by the link.
The customer does not see the files again in the portal.
Where the files are stored
The files are saved in a folder of their own for each return:
wp-content/uploads/north-return-manager-private/{return id}/
The folder is protected like this:
- Each file gets a random name of 32 characters and no file ending, so no one can guess it.
- The folder has a file that blocks direct access on servers that use .htaccess, and an empty index.php.
- You open the files through the WordPress admin. That requires a user who may handle returns, for example a shop manager.
The files are never added to the media library and never get a public address.
If the folder cannot be created or written to, the customer is told before the case is created, so no files are lost without notice. See Something not working? below.
For developers: the filter
north_return_manager_media_dirmoves the folder, for example outside the web root, for the strongest protection.
When the files are removed
Once a day the plugin looks for closed cases. A case is closed when its status is Completed, Rejected or Cancelled. When a closed case has not changed for the number of days in Keep files (days) , its files are deleted.
After that the case shows, for example, 3 files were deleted automatically after the case was closed. The case itself, the description and any link from the customer are kept.
The daily clean-up runs through WooCommerce's scheduled actions.
Files are also removed in these cases:
- An order is deleted permanently. Its returns are deleted with it, together with their history and files. Moving the order to the trash does not delete anything.
- The plugin is deleted with all data. If
NORTH_RETURN_MANAGER_REMOVE_ALL_DATAis set in wp-config.php when you delete the plugin, the foldernorth-return-manager-privateis removed as well. Without it, the returns and the files are kept.
See also Privacy.
Something not working?
- “… could not be uploaded – it may be too large.” The file is larger than the server's upload limit. Ask the customer to paste a link instead, or raise the server's limit with your host.
- “… is larger than 10 MB. Paste a link to it instead.” The file is larger than Max size per file (MB). The customer can paste a link, or you can raise the limit.
- “… is not an image or a film we can open (JPG, PNG, GIF, WEBP, HEIC, HEIF, MP4, MOV, MPEG).” The file type is not accepted, or the file's content does not match its name.
- “Your photos or films could not be saved right now. Paste a link to them instead, or try again later.” The private folder for the files could not be created or is not writable. The case is not created, so the customer can paste a link or try again. The error is logged under WooCommerce → Status → Logs, source
north-return-manager. Ask your host to makewp-content/uploadswritable. - “You can attach at most 5 files.” The customer chose more files than Max number of files.
- “Please add photos or a film that show the fault or the damage (or a link to them).” Files are required for complaints and transport damage, and the customer added neither a file nor a link.
- “The file is no longer available.” The file has been deleted, for example by the daily clean-up.
For more help, see Common errorsor contact support.
