Downloaded products - can't upload product (file)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I recently upgraded my store from 3.6 to 4.0.

I have all my downloadable content (zip files) in a /download folder, and in the products I was providing the URL to mystore/download/file.zip - and that was working great.

Now that I've upgraded I am getting a 404 every time a customer tries to download a product.

So I thought perhaps I would re-upload the files using the "Upload file" option when editing a product. Unfortunately that upload fails, so I can't upload my files to the server using that technique.

The System-Log screen shows no error, so I don't know how to troubleshoot the issue. What is causing my original scheme from 3.6 to fail now in 4.0? Or, how do I re-upload the files so customers can get them?

Thank you for any help!
5 years ago
What are the odds that premium support will get my issue resolved?

Or are there independent consultants who can help?
5 years ago
Hello,

First of all just to confirm, have you taken right way to upgrade nopCommerce? Like upgrading from 3.60 -> 3.70 -> 3.80 -> 3.90 -> 4.00?

Ok. If you have taken this road then make sure you double check permission for IIS_USER on content folder and all it's subfolder.

This could be the issue based on your explanation. Let me know it is does not solves your problem.

Thank you,
Atul
5 years ago
I am not entirely sure how to set folder permissions. I am hosting in an Azure web app - got started with it by using the template in the Azure gallery, that's how I installed 3.60 originally.

I upgraded from 3.6 to 4.0 by pulling the site contents locally via git, updating the local repo, and pushing back to Azure.

I saw a thread about installing to Azure that involved actually building the software. That seems like major overkill when all I want to do is deploy the release provided by nopCommerce.

I've also found various blog posts that seem to indicate that all folders in an Azure web app are writable by the website, but perhaps that is not accurate, given the problems I'm having.

Is there a way to set the permissions on folders in an Azure web site?
5 years ago
I figured out how to set all the permissions via ftp.

But there is no "content" folder in the 4.0 folder structure.
5 years ago
OK, I have a clue.

I have several products available for download. I have been testing with my primary product, which is about 33 mb in size.

I just tried one of my smaller products that is less than 2 mb in size, and I was able to upload that to the server.

So maybe the problem is that larger file uploads are somehow blocked by the server?
5 years ago
Sorry Atul, I can't see a way to edit existing posts, so I'm creating posts as I learn more.

I changed web.config to allow bigger upload sizes - that advice is scattered around the nop forums, and of course the web in general.

    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="4000000000"/>
      </requestFiltering>
    </security>

Unfortunately this didn't resolve the issue. It sounds like there used to be a config setting in the software itself, back in 2012 or something. Is that still true?

It also sounds like there might be a limit to blob size in the database, so larger files need to be uploaded via ftp. But that's where I was BEFORE and that doesn't work now - which is the whole reason I'm trying to upload my products via the product edit screen.
4 years ago
Did you ever resolve this issue? I have the same issue...running in windows server 2019 with IIS 10
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.