picture upload failed

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
hi guys,

new installation and everything works except when I try to add a picture to a product, I instantly get Upload Failed. Any ideas please?
3 года назад
Check the System > Log to see if there's a more detailed error message.
3 года назад
no error at all in the log. I have been looking at this for hours now, even looking at old posts but I can't seem to find a way to fix it.
3 года назад
Does the error appear when you click "Upload a file", or when you later "Add product picture"?
Try turning on the DevTools (F12 in chrome) and check console tab for any (Ajax) errors.
3 года назад
I see an error in the console....:o

[Log] launching FocusManager.parse_for_input on DOM mutation event (content.js, line 529, x2)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (AsyncUpload, line 0)
[Error] [Fine Uploader 5.16.2] Error when attempting to parse xhr response text (JSON Parse error: Unrecognized token '<')
  (anonymous function) (jquery.fine-uploader.min.js:2:5761)
  log (jquery.fine-uploader.min.js:2:24357)
  f (jquery.fine-uploader.min.js:5:11123)
  h (jquery.fine-uploader.min.js:5:10909)
  (anonymous function) (jquery.fine-uploader.min.js:5:10430)
[Log] launching FocusManager.parse_for_input on DOM mutation event (content.js, line 529, x14)
3 года назад
problem fixed.

in the default configuration file - server name - wrong url .

Thanks
3 года назад
(for the benefit of others,...)
Please clarify "default configuration file"
3 года назад
To configure nginx as a reverse proxy to forward requests to your ASP.NET Core app, modify /etc/nginx/sites-available/default. Open it in a text editor and replace the contents with the following:

# Default server configuration
#
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    server_name   nopCommerce-430.com;

    location / {
    proxy_pass         http://localhost:5000;
    proxy_http_version 1.1;
    proxy_set_header   Upgrade $http_upgrade;
    proxy_set_header   Connection keep-alive;
    proxy_set_header   Host $host;
    proxy_cache_bypass $http_upgrade;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto $scheme;
    }
3 года назад
New York - in my case, when I set this up I didn't have a domain so I just copied the file are per the instructions. Even though the site worked, having the wrong URL in the server name returned the error I reported above - also, it messed up Roxy File manager.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.