Closed ghost closed 4 years ago
does it work if you point it to pictshare.net?
curl -F "file=@/Users/apple/Desktop/dev/bethabit/marketing/logo.png" https://pictshare.net/api/upload.php
?
that does work but obviously I need to store the files in my server.. I tried changing the URL in pictshare config file to "https://pictshare.net/" but got the same result "Cannot GET /api/upload.php"
Sure, just making sure it's a problem on your side.
what's the output of
ls -al /var/run/php/php7.3-fpm.sock
It was
cannot access '/var/run/php/php7.3-fpm.sock': No such file or directory
I installed php7 again according to another document https://pixelspress.com/how-to-install-php-7-3-fpm-on-ubuntu-19-10/
Now I get
srw-rw---- 1 www-data www-data 0 May 12 05:33 /var/run/php/php7.3-fpm.sock
and I do php -v I get this
PHP 7.3.17-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Apr 19 2020 07:44:26) ( NTS )
I restarted nginx and I was getting the same cannot post error. I thought nginx cannot access var/www/ by sudo so I placed the repo to the root and tried running it again without any success.
really sounds like a PHP problem. anything in the nginx or php error log?
When I try to upload a file I'm getting cannot post error. Am I missing something?
curl -F "file=@/Users/apple/Desktop/dev/bethabit/marketing/logo.png" https://bethabit.com/api/upload.php
this is the nginx block I use.
this is the pictshare config