• Resolved Ali Falahati

    (@alifalahati)


    Hi.
    I have issue in plugin and when i attache image in ticket reply the image is not visible.
    Plaese help me to solve this problem.
    Thanks Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Ali Falahati

    (@alifalahati)

    the sample link is below
    https://pasteboard.co/iQYdmznfQSvN.png

    sademhaj

    (@jahmedas)

    Hi @alifalahati

    Thank you for reaching us. There are 2 ways to fix this issue:
    
    Edit file wp-content/plugins/awesome-support/includes/file-uploader/class-file-uploader.php
    Go To Line 597 replace this code
    $link = add_query_arg( array( 'wpas-attachment' => $attachment['id'] ), home_url() );
    to
    $link = add_query_arg( array( 'attachment_id' => $attachment['id'] ), home_url() );
    this way is open attachment using default WordPress link
    
    Open WordPress Dashboard. In Menu Ticket->Settings open Advanced Tab and Tic Do Not Mask Attachment Links option. Then Save Setting.
    This way open the attachment directly to the file address. Please let me know if you need any further assistance. 
    
    Regards
    djanym

    (@djanym)

    Hey @jahmedas
    Could you add an action in wp-content/plugins/awesome-support/includes/file-uploader/class-file-uploader.php in line 614?
    Right before sending the attachment content.
    Something like:
    do_action('wpas_before_view_attachment_render')
    This will allow fixing this issue without changing the plugin code.

    sademhaj

    (@jahmedas)

    Hi @djanym

    Thanks, I will forward this to the developers.

    Regards

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

The topic ‘Attached Image not Visible’ is closed to new replies.