Edits history of script submission #6015 for ' Create a file in S3 (Bun) (s3)'

  • bun
    One script reply has been approved by the moderators
    Ap­pro­ved
    import * as wmill from 'windmill-client';
    import { S3Object } from 'windmill-client';
    
    export async function main(s3_file_path: string) {
    	const s3_file_output: S3Object = {
    		s3: s3_file_path
    	};
    
    	const file_content = 'Hello Windmill!';
    	// file_content can be either a string or ReadableStream<Uint8Array>
    	await wmill.writeS3File(s3_file_output, file_content);
    	return s3_file_output;
    }

    Submitted by hugo697 385 days ago

  • bun
    import * as wmill from 'windmill-client';
    import { S3Object } from 'windmill-client';
    
    export async function main(s3_file_path: string) {
    	const s3_file_output: S3Object = {
    		s3: s3_file_path
    	};
    
    	const file_content = 'Hello Windmill!';
    	// file_content can be either a string or ReadableStream<Uint8Array>
    	await wmill.writeS3File(s3_file_output, file_content);
    	return s3_file_output;
    }

    Submitted by henri186 805 days ago