Fossil

Check-in [3aa57a20b7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Ensure that the unversioned table exists if an upload is triggered via /uvlist.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | uv-upload
Files: files | file ages | folders
SHA3-256: 3aa57a20b793877c288480654aa5c7120fdd3d659f89eb71abc97a5df81876cb
User & Date: stephan 2024-06-25 09:33:39.513
Context
2024-06-25
18:10
Add ability to upload unversioned files via the /uvlist page. check-in: 2d4fd55fee user: stephan tags: trunk
09:33
Ensure that the unversioned table exists if an upload is triggered via /uvlist. Closed-Leaf check-in: 3aa57a20b7 user: stephan tags: uv-upload
2024-06-24
20:44
Add a mention of the /uvlist file-upload feature to the change log. check-in: 77fb3d07a8 user: stephan tags: uv-upload
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/unversioned.c.
549
550
551
552
553
554
555

556
557
558
559
560
561
562
    }else if( contains_whitespace(zName) ){
      zError = "contain spaces";
    }
    if( zError ){
      fossil_fatal("Unversioned filenames may not %s: %Q",
                   zError, zName);
    }

    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: %s</div>", zName);







>







549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
    }else if( contains_whitespace(zName) ){
      zError = "contain spaces";
    }
    if( zError ){
      fossil_fatal("Unversioned filenames may not %s: %Q",
                   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: %s</div>", zName);