<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl/page.c, branch imagemagick</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=imagemagick</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=imagemagick'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2023-03-28T01:15:27+00:00</updated>
<entry>
<title>WIP thumbnail stuff</title>
<updated>2023-03-28T01:15:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-24T01:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=fa97b1904c72c184b09c627c7ccab0d0db4a060c'/>
<id>urn:sha1:fa97b1904c72c184b09c627c7ccab0d0db4a060c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Define _POSIX_C_SOURCE</title>
<updated>2023-03-24T01:49:11+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-24T01:47:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=b3ef22ac2ae126951c5b74003c7b17189c0ecbbb'/>
<id>urn:sha1:b3ef22ac2ae126951c5b74003c7b17189c0ecbbb</id>
<content type='text'>
This allows using the default compiler defined by make(1) (i.e.,
c99(1)), thus improving POSIX compatibility.
</content>
</entry>
<entry>
<title>Send response on quota exceeded</title>
<updated>2023-03-20T09:57:20+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-20T02:32:00+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=d9bb874591c63f2efbfc1c4c953934251c700e9f'/>
<id>urn:sha1:d9bb874591c63f2efbfc1c4c953934251c700e9f</id>
<content type='text'>
So far, slcl would just close the connection with a client when the
Content-Length of an incoming request exceeded the user quota, without
any meaningful information given back to the user.

Now, slcl responds with a HTML file with meaningful information about
the error.

Limitations:

- While this commits has been successfully tested on ungoogled-chromium,
LibreWolf (and I assume Firefox and any other derivates too) does not
seem to receive the response from the server.
    - However, this issue only occurred during local testing, but not
on remote instances.
</content>
</entry>
<entry>
<title>page.c: Set Content-Disposition when serving files</title>
<updated>2023-03-16T00:49:18+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-16T00:49:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=27b8a6971861cb4ead0eb07965bb4873f591ad24'/>
<id>urn:sha1:27b8a6971861cb4ead0eb07965bb4873f591ad24</id>
<content type='text'>
So far, slcl used the default browser behaviour (i.e.,
Content-Disposition: inline), which means files were typically shown on
the web browser itself. However, this caused two issues:

- Users would have to right-click -&gt; "Save Link As..." to download a
file, which might be inconvenient for some users.
- The original file name would not be retrieved for publicly shared
files.

Now, file download is always requested to the browser, and the original
file path is retrieved via readlink(2).
</content>
</entry>
<entry>
<title>page.c: Fix wrong error message</title>
<updated>2023-03-09T01:04:52+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-09T01:02:06+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=69a059e0df99f1f6a68e2ffa52585ae3f6a488fa'/>
<id>urn:sha1:69a059e0df99f1f6a68e2ffa52585ae3f6a488fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement public file sharing</title>
<updated>2023-03-09T01:02:40+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-09T00:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=2e1b1313962d979b6e15491c63d316d829638bf0'/>
<id>urn:sha1:2e1b1313962d979b6e15491c63d316d829638bf0</id>
<content type='text'>
An HTML form is now added next to each regular file, that generates a
POST request. Then, slcl replies with a HTML document with a link to the
public resource (which are implemented as symlinks).

Limitations:

- For now, only regular files can be shared i.e., sharing directories is
not possible. While feasible, it still requires a larger refactor to
list_dir and resource_layout, so that read-only access to the directory
is provided to anonymous users.
</content>
</entry>
<entry>
<title>page.c: Provide meaningful description on HTTP 404</title>
<updated>2023-03-09T00:23:02+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-09T00:23:02+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=13f96054f6fb68aae464363e283e32f01d2da1a3'/>
<id>urn:sha1:13f96054f6fb68aae464363e283e32f01d2da1a3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>page.c: Implement function for common &lt;head&gt; nodes</title>
<updated>2023-03-09T00:20:18+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-09T00:20:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=8016f537ca5a4bbde6fee2566ff82cd222122915'/>
<id>urn:sha1:8016f537ca5a4bbde6fee2566ff82cd222122915</id>
<content type='text'>
This will be used by future commits.
</content>
</entry>
<entry>
<title>page.c: Set common &lt;head&gt; parameters</title>
<updated>2023-03-08T17:52:03+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-08T17:52:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=c4488c5e810c8a16ff331a7972b02658814adeb1'/>
<id>urn:sha1:c4488c5e810c8a16ff331a7972b02658814adeb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>page.c: Show units for user quota</title>
<updated>2023-03-07T23:33:55+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-03-07T23:33:55+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=04716581779dbf4bfebbcc21469d5d40d91a57a7'/>
<id>urn:sha1:04716581779dbf4bfebbcc21469d5d40d91a57a7</id>
<content type='text'>
</content>
</entry>
</feed>
