Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | In the /uvlist upload process, use %h instead of %s to render the newly-uploaded file's name. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d1b0ccf1571158dd66e0481b1e770153 |
| User & Date: | stephan 2024-06-29 22:32:56.373 |
Context
|
2024-06-30
| ||
| 12:22 | Fix the 'rebuild' command by adding the missing columns to the schema. check-in: cb3421c493 user: tsbg tags: trunk | |
|
2024-06-29
| ||
| 22:32 | In the /uvlist upload process, use %h instead of %s to render the newly-uploaded file's name. check-in: d1b0ccf157 user: stephan tags: trunk | |
|
2024-06-25
| ||
| 18:10 | Add ability to upload unversioned files via the /uvlist page. check-in: 2d4fd55fee user: stephan tags: trunk | |
Changes
Changes to src/unversioned.c.
| ︙ | ︙ | |||
546 547 548 549 550 551 552 |
Blob content;
if( zName[0]==0 ){
zError = "be an empty string";
}else if( contains_whitespace(zName) ){
zError = "contain spaces";
}
if( zError ){
| | | | 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
Blob content;
if( zName[0]==0 ){
zError = "be an empty string";
}else if( contains_whitespace(zName) ){
zError = "contain spaces";
}
if( zError ){
fossil_fatal("Unversioned filenames may not %s: %h",
zError, zName);
}
unversioned_schema();
db_begin_transaction();
content_rcvid_init("#!fossil /uvlist upload");
blob_init(&content, aContent, nContent);
unversioned_write(zName, &content, time(0));
blob_reset(&content);
db_end_transaction(0);
CX("<div>Added: %h</div>", zName);
}
form_begin("enctype='multipart/form-data'", "%R/uvlist");
CX("<label for='uvupload'>Upload unversioned file:</label>");
CX("<input type='file' id='uvupload' name='f'/>");
CX("<input type='submit' value='Upload'/>");
CX("</form>");
}
|
| ︙ | ︙ |