diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2024-09-09 13:52:35 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2024-09-10 12:01:05 +0200 |
commit | 4e921ffa31fdca2425d326efda1c6d9ad190359a (patch) | |
tree | 8d0fe130bd26dedb5c0754249734608217bbd6b9 /file.c | |
parent | d7edafe299d44a0bec9d29e2b3a4ca853ffa1a80 (diff) |
upload: handle form submission
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |