Skip to content

Uploaded custom option file/images not download from order screen #6558

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

Closed
magentodevleper opened this issue Sep 9, 2016 · 8 comments
Closed
Labels
bug report Component: Catalog Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@magentodevleper
Copy link

Preconditions

  1. Magento 2.1.0

Steps to reproduce

  1. Create configurable product (Ex : Test product) with custom option file
  2. Front-end : Order this item with upload any image
  3. Open recently place order from backend (Ex - Order No : 0001)
  4. Download uploaded image from order screen - It is working fine.
  5. Update configurable product (Test product).
  6. Reopen order (Order No : 0001) and download image. It will show 404 page.

Expected result

  1. We want to download images from order screen after updating products.

Actual result

  1. After updating product, Uploaded Image/File is not download. It will show 404 page.

Could you please help me on this. How to resolve this issue?

@miakusha
Copy link
Contributor

miakusha commented Oct 5, 2016

Hi @magentodevleper thank for report

We've created internal ticket MAGETWO-59345 to address this issue.

@miakusha miakusha added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 5, 2016
@paales
Copy link
Contributor

paales commented Jan 4, 2017

In Magento\Sales\Controller\Download\DownloadCustomOption::execute comment out the following code:

if ($optionId) {
    /** @var $productOption \Magento\Catalog\Model\Product\Option */
    $productOption = $this->_objectManager->create('Magento\Catalog\Model\Product\Option')->load($optionId);
}

if (!$productOption || !$productOption->getId() || $productOption->getType() != 'file') {
    return $resultForward->forward('noroute');
}

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Catalog Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed labels Sep 11, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 5, 2017
@magento-engcom-team
Copy link
Contributor

@magentodevleper, thank you for your report.
The issue is already fixed in develop branch, 2.2.0

@uandiweb
Copy link

uandiweb commented Sep 4, 2018

I've this issue in version 2.2.5. Paales solution does work, but I wish this issue could be fixed permanently.

@Ctucker9233
Copy link

@magento-engcom-team Please point out where in 2.2 this fix is present? It seems to still be an issue for some.

@dverkade
Copy link
Member

dverkade commented Jan 14, 2019

I'm reopening this issue again, because this is still present in 2.2.X and 2.3.0 according to my research in ticket #20277, so this issue was closed while it was not resolved.

@dverkade dverkade reopened this Jan 14, 2019
@ghost
Copy link

ghost commented Jan 14, 2019

@dverkade I'm closing this one, as duplicate to this one -> #20277

@ghost ghost closed this as completed Jan 14, 2019
@ChintanKaneriya
Copy link

Is this issue fixed yet?

I have tried the solution which was given by @paales but still, I am getting 404 while trying to download the image.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Catalog Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

9 participants