http error 500 when uploading *.js file to WebDAV

Advertisement

Guest

http error 500 when uploading *.js file to WebDAV

If i use WinSCP via WebDAV on my server and it try to upload a *.js file or *.json file, i get a http server error 500. Uploading with other programs like TotalCommander and WebDAV Plugin do work.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: http error 500 when uploading *.js file to WebDAV

Show us a verbose log files from WinSCP as well as from the other clients.

Reply with quote

Guest

It seems, i have found the problem. All my *.js files where owned by a other user on file-system level, so the www-data user becomes access denied:

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:sabredav-version>3.2.0</s:sabredav-version>
<s:exception>ErrorException</s:exception>
<s:message>file_put_contents(/local/path/to/client.js): failed to open stream: Permission denied</s:message>
</d:error>

After correcting the ownership, the upload seems to work.

Reply with quote

Advertisement

You can post new topics in this forum