| | @@ -445,16 +445,17 @@ |
| 445 | 445 | ** page=WIKIPAGE |
| 446 | 446 | ** technote=HASH |
| 447 | 447 | ** forumpost=HASH |
| 448 | 448 | ** from=URL |
| 449 | 449 | ** |
| 450 | | -** Or: |
| 450 | +** Adds a POSTed file attachment to the given target. |
| 451 | +** |
| 452 | +** Or the "version 2" interface: |
| 451 | 453 | ** |
| 452 | 454 | ** target=ATTACHMENT_TARGET |
| 453 | 455 | ** |
| 454 | | -** Behaves exactly like /attachaddV2. |
| 455 | | -** |
| 456 | +** Behaves exactly like attachaddV2_page(). |
| 456 | 457 | */ |
| 457 | 458 | void attachadd_page(void){ |
| 458 | 459 | const char *zPage; |
| 459 | 460 | const char *zForumPost; |
| 460 | 461 | const char *zTkt; |
| | @@ -604,13 +605,13 @@ |
| 604 | 605 | fossil_free(zTargetType); |
| 605 | 606 | fossil_free(zExtraFree); |
| 606 | 607 | } |
| 607 | 608 | |
| 608 | 609 | /* |
| 609 | | -** WEBPAGE: attachaddV2_ajax_post hidden |
| 610 | +** WEBPAGE: attachadd_ajax_post hidden |
| 610 | 611 | ** |
| 611 | | -** Used by /attachaddV2 to handle attachments via POST requests with: |
| 612 | +** Used by attachadd V2 to handle attachments via POST requests with: |
| 612 | 613 | ** |
| 613 | 614 | ** target=ATTACHMENT_TARGET |
| 614 | 615 | ** file1..fileN=FILE_OBJECTS |
| 615 | 616 | ** dryrun=0|1 |
| 616 | 617 | ** |
| | @@ -620,11 +621,11 @@ |
| 620 | 621 | ** |
| 621 | 622 | ** Responds with JSON: an empty object on success and |
| 622 | 623 | ** {error:"message"} on error. The on-success response structure is |
| 623 | 624 | ** subject to amendment. |
| 624 | 625 | */ |
| 625 | | -void attachaddV2_ajax_post(void){ |
| 626 | +void attachadd_ajax_post(void){ |
| 626 | 627 | const char *zTarget; |
| 627 | 628 | char *zExtraFree = 0; |
| 628 | 629 | int iTgtType = 0; |
| 629 | 630 | int bNeedsModeration = 0; |
| 630 | 631 | int i; |
| | @@ -760,11 +761,11 @@ |
| 760 | 761 | ajax_route_error(404, "Target not found."); |
| 761 | 762 | return; |
| 762 | 763 | } |
| 763 | 764 | |
| 764 | 765 | /* |
| 765 | | -** WEBPAGE: attachaddV2 hidden |
| 766 | +** Proxy for /attachadd?target=X |
| 766 | 767 | ** |
| 767 | 768 | ** Lists attachments for, and can add them to, a target artifact. |
| 768 | 769 | ** |
| 769 | 770 | ** target=TKT_HASH|WIKIPAGE_NAME|TECHNOTE_HASH|FORUMPOST_HASH |
| 770 | 771 | ** from=ORIGINATING_URL |
| 771 | 772 | |