summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-09 13:52:35 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-10 12:01:05 +0200
commit4e921ffa31fdca2425d326efda1c6d9ad190359a (patch)
tree8d0fe130bd26dedb5c0754249734608217bbd6b9 /file.c
parentd7edafe299d44a0bec9d29e2b3a4ca853ffa1a80 (diff)
upload: handle form submission
Diffstat (limited to 'file.c')
-rw-r--r--file.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/file.c b/file.c
index 239f548..24fb557 100644
--- a/file.c
+++ b/file.c
@@ -145,7 +145,8 @@ file_get_basename(const struct file * f)
}
size_t
-file_get_data_path(const struct file * f, char *data_path, size_t data_path_len)
+file_get_data_path(const struct file * f, char *data_path, size_t data_path_len,
+ char *append)
{
char *data_dir;
size_t path_len;
@@ -155,7 +156,8 @@ file_get_data_path(const struct file * f, char *data_path, size_t data_path_len)
return 0;
/* check if it is a directory */
- path_len = url_build(data_path, data_path_len, data_dir, f->path, NULL);
+ path_len = url_build(data_path, data_path_len, data_dir, f->path,
+ append, NULL);
if (path_len == 0 || path_len >= PATH_MAX)
return 0;