Fossil

Check-in [dff1332593]
Login

Check-in [dff1332593]

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

Overview
Comment:Show the size of the file in the /file display of audio/* files.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: dff1332593869ff5b21c2add728363afe91c50a747ef54b716fe89a8d50152b2
User & Date: drh 2021-01-04 12:14:31.403
Context
2021-01-04
12:22
Removed reference to now-removed chat-received.wav. ... (check-in: f51da629a8 user: stephan tags: trunk)
12:14
Show the size of the file in the /file display of audio/* files. ... (check-in: dff1332593 user: drh tags: trunk)
03:26
Minor cleanups in the chat-internal settings API and menu. ... (check-in: def06dc645 user: stephan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
2533
2534
2535
2536
2537
2538
2539

2540
2541
2542
2543
2544
2545
2546
          @ </pre>
        }
      }else if( strncmp(zMime, "image/", 6)==0 ){
        @ <p>(file is %d(blob_size(&content)) bytes of image data)</i></p>
        @ <p><img src="%R/raw/%s(zUuid)?m=%s(zMime)"></p>
        style_submenu_element("Image", "%R/raw/%s?m=%s", zUuid, zMime);
      }else if( strncmp(zMime, "audio/", 6)==0 ){

        @ <audio controls src="%R/raw/%s(zUuid)?m=%s(zMime)">
        @ (Not supported by this browser)
        @ </audio>
      }else{
        @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i>
      }
      @ </blockquote>







>







2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
          @ </pre>
        }
      }else if( strncmp(zMime, "image/", 6)==0 ){
        @ <p>(file is %d(blob_size(&content)) bytes of image data)</i></p>
        @ <p><img src="%R/raw/%s(zUuid)?m=%s(zMime)"></p>
        style_submenu_element("Image", "%R/raw/%s?m=%s", zUuid, zMime);
      }else if( strncmp(zMime, "audio/", 6)==0 ){
        @ <p>(file is %d(blob_size(&content)) bytes of sound data)</i></p>
        @ <audio controls src="%R/raw/%s(zUuid)?m=%s(zMime)">
        @ (Not supported by this browser)
        @ </audio>
      }else{
        @ <i>(file is %d(blob_size(&content)) bytes of binary data)</i>
      }
      @ </blockquote>