Orchestrates uploading all artwork files to appropriate CDN buckets (art-vault for originals, art-public for thumbnails) and returns a data.table of CDN paths for database storage.
Usage
.comp_artwork_paths(artist, artwork, new_utc)
.upload_assets(
artist,
artwork,
file_image,
file_canvas,
file_video,
file_stats,
zip_frames = NULL,
file_variants = NULL
)
upload_artdata(
artist,
artwork,
new_utc,
file_image,
file_canvas,
file_video,
zip_frames = NULL,
file_stats,
file_variants = NULL
)
land_artwork_thumb(artist, artwork, temp_path)
land_artwork_png(artist, artwork, temp_path)
land_artwork_raw(artist, artwork, temp_path)
land_stats_screenshot(artist, artwork, temp_path)
land_artwork_mp4(artist, artwork, temp_path)
land_artwork_zip(artist, artwork, temp_path, prefix = NULL)
land_artwork_variants(artist, artwork, variants)Arguments
- artist
Character. Artist UUID identifying the creator.
- artwork
Character. Artwork UUID for this piece.
- new_utc
POSIXct. Timestamp for tracking when assets were uploaded.
- file_image
Character. Local path to main PNG artwork image.
- file_canvas
Character. Local path to .procreate canvas file.
- file_video
Character. Local path to timelapse MP4 video.
- file_stats
Character. Local path to stats screenshot image.
- zip_frames
Character. Optional path to pre-extracted frames ZIP.
- file_variants
Character. Optional path to variants directory or vector of PNG paths for additional artwork variants.
Value
data.table with CDN paths (no uploads performed)
List with success status and uploaded paths
data.table with CDN paths for all uploaded assets.
Details
The upload process: 1. Validates no existing assets at target paths (prevents overwrites) 2. Normalizes filenames to canonical names (main.png, canvas.procreate, etc.) 3. Creates thumbnail from main image 4. Uploads all assets to appropriate CDN buckets 5. Returns artwork_paths data.table for database insertion
Functions
.comp_artwork_paths(): Pure computation - build CDN path manifest.upload_assets(): I/O only - upload all assets to CDNupload_artdata(): Upload all artwork assets and return paths data.tableland_artwork_thumb(): creates and lands thumbnail in cdn art-publicland_artwork_png(): upload main.png to vault cdnland_artwork_raw(): send to vault cdnland_stats_screenshot(): internalland_artwork_mp4(): send to vault cdnland_artwork_zip(): send to vault cdnland_artwork_variants(): send to vault cdn in directory called variants
See also
Other upload functions:
internal-upload-utils
