Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't view file upload in ticket after Add Attachment #700

Closed
chonnuchajo opened this issue Oct 12, 2023 · 3 comments
Closed

can't view file upload in ticket after Add Attachment #700

chonnuchajo opened this issue Oct 12, 2023 · 3 comments
Labels
Attachment Issue in attachments V-1.1.3

Comments

@chonnuchajo
Copy link

i have a problem with func.Add Attachment

  • It's can be add something and show detail from file upload
    image
    image

  • but sometime when i want to view by click .It show error follow this
    image

i'm not sure miss someany config it

@komal-sh-27
Copy link
Contributor

@chonnuchajo ,

We have noticed this error in the latest release uvdesk. We have fixed this issue but changes wiil be reflect on the next release. At this moment you can change the some code in your project. Please follow the below steps:

Step 1: Go to your project, open and change the code in below mentioned file path:

your-project-folder/vendor/uvdesk/core-framework/FileSystem/FileSystem.php

Add a code like this as shown the below screenshot:

$scheme = $this->container->get('router')->getContext()->getScheme();
$host = $this->container->get('router')->getContext()->getHost();
$baseUrl = "$scheme://$host";
$assetDetails['downloadURL'] = $baseUrl.$assetDetails['downloadURL'];

image

Reference from here.

Step 2: Now change some code in the mentioned below file path:

your-project-folder/vendor/uvdesk/core-framework/Controller/Ticket.php

$response->headers->set('Content-length', filesize($zipname));
Another line:

readfile($path);

image

Reference from here:

uvdesk/core-framework@ad4ab27

uvdesk/core-framework@dfd98fa

Step 3: After change the both files you will be cleared cache of your project using the below command in your project root directory:

$ php bin/console c:c

If you are facing the same issue then let us know.

Kind Respects,
Uvdesk team

@komal-sh-27 komal-sh-27 added Attachment Issue in attachments V-1.1.3 labels Oct 12, 2023
@chonnuchajo
Copy link
Author

thank you so much .

@komal-sh-27
Copy link
Contributor

@chonnuchajo ,

Thanks for the update here. These changes wiil be reflect on the future release. For now we are closing this issue.
Thanks for your time and patience!!!

Kind Respects,
Uvdesk Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attachment Issue in attachments V-1.1.3
Projects
None yet
Development

No branches or pull requests

2 participants