Skip to content

Commit 24bdce9

Browse files
Bill Leoutsakoscursoragent
authored andcommitted
fix(instagram): match Gmail advanced media placeholders
Drop public-URL paste hints from advanced fields and the cloud-storage banner so the UI mirrors Gmail attachments. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 89caa68 commit 24bdce9

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

apps/sim/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ API_ENCRYPTION_KEY=your_api_encryption_key # Use `openssl rand -hex 32` to gener
100100
# INSTAGRAM_CLIENT_ID=
101101
# INSTAGRAM_CLIENT_SECRET=
102102
# Instagram publish file uploads require S3 or Azure Blob above (Meta must fetch a public HTTPS URL).
103-
# Pasting a public HTTPS URL in advanced mode works without cloud storage. Gmail attachments do not need this.
103+
# Gmail attachments do not need this.
104104
# Azure Blob Storage takes precedence over S3 if both are configured
105105
# AZURE_ACCOUNT_NAME= # Azure storage account name
106106
# AZURE_ACCOUNT_KEY= # Azure storage account key

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/file-upload/file-upload.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,8 @@ export function FileUpload({
710710

711711
{showCloudStorageWarning && (
712712
<div className='mb-2 text-muted-foreground text-xs'>
713-
Cloud storage (S3 or Blob) is required for file uploads. Switch to advanced mode and paste
714-
a public HTTPS URL, or configure S3_BUCKET_NAME / Azure Blob env vars.
713+
Cloud storage (S3 or Blob) is required for file uploads. Configure S3_BUCKET_NAME and
714+
AWS_REGION, or Azure Blob env vars.
715715
</div>
716716
)}
717717

apps/sim/blocks/blocks/instagram.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
121121
required: true,
122122
},
123123

124-
// Publish Image — JPEG upload / file ref / public HTTPS URL
124+
// Publish Image — JPEG upload / file ref (same basic+advanced pattern as Gmail)
125125
{
126126
id: 'imageUpload',
127127
title: 'Image',
@@ -141,7 +141,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
141141
title: 'Image',
142142
type: 'short-input',
143143
canonicalParamId: 'image',
144-
placeholder: 'Reference files from previous blocks, or paste a public HTTPS JPEG URL',
144+
placeholder: 'Reference files from previous blocks',
145145
condition: { field: 'operation', value: 'instagram_publish_image' },
146146
mode: 'advanced',
147147
required: { field: 'operation', value: 'instagram_publish_image' },
@@ -173,7 +173,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
173173
title: 'Video',
174174
type: 'short-input',
175175
canonicalParamId: 'video',
176-
placeholder: 'Reference files from previous blocks, or paste a public HTTPS video URL',
176+
placeholder: 'Reference files from previous blocks',
177177
condition: {
178178
field: 'operation',
179179
value: ['instagram_publish_video', 'instagram_publish_reel'],
@@ -206,7 +206,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
206206
title: 'Cover Image',
207207
type: 'short-input',
208208
canonicalParamId: 'cover',
209-
placeholder: 'Reference files from previous blocks, or paste a public HTTPS JPEG URL',
209+
placeholder: 'Reference files from previous blocks',
210210
condition: {
211211
field: 'operation',
212212
value: ['instagram_publish_video', 'instagram_publish_reel'],
@@ -235,7 +235,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
235235
title: 'Media',
236236
type: 'short-input',
237237
canonicalParamId: 'media',
238-
placeholder: 'Reference files from previous blocks, or paste a public HTTPS URL',
238+
placeholder: 'Reference files from previous blocks',
239239
condition: { field: 'operation', value: 'instagram_publish_story' },
240240
mode: 'advanced',
241241
required: { field: 'operation', value: 'instagram_publish_story' },
@@ -261,8 +261,7 @@ export const InstagramBlock: BlockConfig<InstagramResponse> = {
261261
title: 'Media',
262262
type: 'long-input',
263263
canonicalParamId: 'carouselMedia',
264-
placeholder:
265-
'Reference files from previous blocks, or paste comma-separated public HTTPS URLs (prefix videos with video:)',
264+
placeholder: 'Reference files from previous blocks',
266265
condition: { field: 'operation', value: 'instagram_publish_carousel' },
267266
mode: 'advanced',
268267
required: { field: 'operation', value: 'instagram_publish_carousel' },

0 commit comments

Comments
 (0)