Report this

What is the reason for this report?

Unable to upload images specifically on DigitalOcean Server

Posted on November 28, 2015

I have a Laravel site which is running well on a localhost as well as Hostgator Linux shared server. The website allows users to make accounts and upload images and documents in following two directories:

var/www/html/contents/individual/personal/docs var/www/html/contents/individual/personal/images

Now I have moved it to Ubuntu at DigitalOcean. Here a user can upload a document in the directory “docs” but when he uploads an image in the directory “images”, there is an error “[object Object]”. Is this related to permissions.

A command “ls -l” gives me following information on permissions:

itsme@MyWebsite:/var/www/html/contents/individual/personal$ ls -l total 20 drwxrwxrwx 3 www-data www-data 4096 Aug 31 04:29 sounds drwxrwxrwx 2 www-data www-data 4096 Nov 27 01:22 docs drwxrwxrwx 3 www-data www-data 12288 Nov 27 01:23 images

Can someone help in resolving this issue. Thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.