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
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.
Hi @djanym
Thanks, I will forward this to the developers.
Regards