• Resolved cs-ilck

    (@cs-ilck)


    Overview of the Website’s Features
    Our WordPress site includes a custom functionality where users:

    1. Select a fabric.
    2. Upload artwork files (JPEG, PNG, or TIFF).
    3. Edit or adjust the uploaded artwork using a custom artboard tool.
    4. Submit the final artwork to the client for print and complete payment.

    The upload functionality is a core feature and relies on AJAX requests to handle file uploads.

    The Problem
    When the CleanTalk Anti-Spam plugin is enabled, the upload functionality is blocked. Specifically:

    • The AJAX request to /wp-admin/admin-ajax.php returns a 403 Forbidden error, preventing the file upload.
    • Related POST requests, such as those to /wp-json/, also appear to be blocked.

    Disabling CleanTalk resolves the issue, allowing uploads to work as expected.

    Fix Attempted
    We attempted to resolve the issue by whitelisting the relevant endpoints:

    1. /wp-admin/admin-ajax.php
    2. /wp-json/

    These were added under Exclusions > URL Exclusions, as a comma-separated list and as individual lines. However, CleanTalk returned the following validation error:

    Validate Settings: URL Exclusions is not valid: "/wp-admin/admin-ajax.php /wp-json/*"

    Request for Guidance
    We would appreciate your assistance in understanding how to:

    1. Properly configure CleanTalk to exclude our custom upload functionality from being blocked.
    2. Identify any specific settings or rules within CleanTalk that may cause this behaviour.
    3. Ensure compatibility with AJAX and REST API endpoints necessary for file uploads.

    If logs or additional information are required, we are happy to provide them.

    The page I need help with: [log in to see the link]

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

The topic ‘File Uploads on Custom WordPress Feature’ is closed to new replies.