Skip to content

Attachment download fails on Windows: cannot create attachment directory (os error 5) #50179

Open

Description

@jiwon0626-source

In ChatGPT Codex Work mode, uploaded PNG and DOCX files cannot be downloaded for inspection.

Error:
cannot create attachment directory: 액세스가 거부되었습니다. (os error 5)

First observed: 2026-10-02 around 10:59 KST.

Multiple files reproduce the issue.
Incognito mode and restarting the PC did not resolve it.
Creating code files inside the workspace succeeds.

The execution environment reports Windows paths and PowerShell.
Whether this task runs locally or in Cloud needs confirmation.
The failing attachment directory path is not shown.

Activity

  1. added
    bug
    windows-os
    on Oct 2, 2026
  2. github-actions commented on Oct 2, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. HuxtonQuinn commented on Oct 3, 2026

    @HuxtonQuinn

    I am experiencing the same issue in ChatGPT Work mode on Windows.

    Image previews are visible in the chat, but attachment downloads fail with:

    cannot create attachment directory: 拒绝访问。 (os error 5)

    The localized message means “Access is denied.” Multiple JPG and PNG uploads reproduce the failure. Re-uploading through the web interface did not resolve it.

    The image editor also returns:

    requested the last 1 conversation images, but only 0 were available

    An alternative file-reading path returns:

    Native image pixels were unavailable; returned extracted text only.

    Some screenshot text can be extracted, but the actual image pixels remain unavailable through the tested paths.

    Image editing works in a separate regular ChatGPT Images conversation, but remains unavailable in this Work session.

    Is there a supported workaround? Could you investigate why image previews are visible while the assistant and image editor cannot access the image pixels?

    Related: #49422

  4. YuzuWolfscry commented on Oct 3, 2026

    @YuzuWolfscry

    I am also experiencing this through the ChatGPT web interface in Codex Work mode.

    Environment

    • Date reproduced: 3 October 2026, approximately 13:37–13:40 Europe/Amsterdam (UTC+2).
    • Interface: ChatGPT web interface, Codex Work mode.
    • The assistant's execution environment reports Windows filesystem paths and PowerShell.
    • Workspace path: C:\Users<username>\Documents\Codex\2026-10-03\new-chat
    • Reported sandbox mode: workspace-write.
    • Reported approval policy: never.
    • I experience screenshot-access failures across all my sessions, not just this conversation. The tool errors documented below were directly observed in this conversation.

    Reproduction steps

    1. Upload PNG screenshots into a conversation.
    2. Ask the assistant to inspect them.
    3. The assistant receives attachment filenames and file IDs.
    4. The assistant calls download_file with the supplied file IDs.
    5. Every attempted retrieval fails with:

    cannot create attachment directory: Access is denied. (os error 5)

    1. Upload fresh copies and retry. The same error occurs.

    Directly observed results

    Four attachment retrievals were attempted across two upload batches.

    Batch 1 — two attachments named image.png:

    • file_0000000053808246bf36ec39d8a0df28
    • file_000000002dc88210baf72456887d86a5

    Batch 2 — fresh attachments named image.png and image(1).png:

    • file_0000000029308210b3d351ea0a266c5a
    • file_000000009944821081878dfbe20ea546

    All four download_file calls returned exactly:

    cannot create attachment directory: Access is denied. (os error 5)

    Example tool invocation:

    download_file({
    "file_id": "file_0000000029308210b3d351ea0a266c5a"
    })

    No local file path or byte count was returned. The assistant therefore could not proceed to inspect the screenshots using view_image.

    Expected behaviour

    Uploaded screenshots should be retrievable and available for inspection by the assistant.

    Actual behaviour and impact

    Attachment retrieval fails while attempting to create an attachment directory. This blocks screenshot-based troubleshooting even though attachment IDs have been supplied to the assistant.

    Repeated uploads did not resolve the issue in this conversation.

    Unknowns

    • The error does not identify the directory it attempted to create.
    • The tool output does not include a stack trace or permission details.
    • The execution environment reports Windows paths, but this does not establish whether the failing operation runs locally or remotely.
    • The underlying cause has not been established. An ACL, sandbox, or directory-configuration problem would be a hypothesis, not a confirmed diagnosis.
    • This conversation directly tested PNG attachments only.
    • No incognito, browser-change, or reboot tests were performed as part of these documented attempts.

    Please investigate the attachment-directory creation failure and expose the failing path or additional diagnostic details where possible.

  5. aryed commented on Oct 4, 2026

    @aryed

    I am experiencing a similar attachment-access failure in ChatGPT Work, most recently on October 4, 2026.

    It repeatedly affects attached files, including photos. It also affects large pasted text when the interface converts it into an attachment.

    For example, after attaching photos and asking the assistant to read handwritten annotations, I received:

    I couldn’t inspect the photos because attachment access failed with a Windows sandbox provisioning error. Please paste the first photo directly into the chat so I can read the annotations.

    This is the assistant’s explanation, rather than the underlying tool error. I cannot yet confirm that the root cause is identical to the attachment-directory permission failure reported here.

    The assistant’s execution environment reports Windows paths and PowerShell. I have not established whether execution routing is relevant or whether Spaces is involved.

    The problem prevents me from using attachments for ordinary document-review tasks. Please investigate and clarify whether there is a supported workaround. If this belongs outside this repository, please route it to the ChatGPT Work attachment/execution team.

    Related reports: #49422 and #50556.

  6. aryed commented on Oct 4, 2026

    @aryed

    Additional detail from my tests: the attachment-access failure occurs with both Sol and Astra. It is therefore not specific to either of those models; switching between them does not avoid the issue. I have not established the underlying cause.

  7. MainSteps commented on Oct 5, 2026

    @MainSteps

    Hola, me pasa exactamente el mismo problema, intente todos los flujos posibles, pero el chat modo work cloud no lo lee. Para tu tranquilidad, investigue el problema y al parecer es un bug a muchos usuarios, es un problema que OpenIa debe solucionar pues en estos dias han estado apareciendo muchos reportes similares. Por si te sirve, sube los archivos a Google Drive y pide desde el chat modo work cloud que lo lea desde ahi con el plugin de Google Drive.

  8. DesertFox0404 commented on Oct 5, 2026

    @DesertFox0404

    I can confirm the same issue on Windows in ChatGPT Codex Work mode, still occurring on October 5, 2026.

    Error: “cannot create attachment directory: Zugriff verweigert (os error 5)”

    Additional observations:

    • Image attachments work in regular ChatGPT chats.
    • Restarting the PC did not resolve the issue.
    • Codex can read and inspect the same screenshots when saved in a local folder and accessed by their filesystem path.
    • Reading and writing project files in the workspace works.

    Saving screenshots locally is a working workaround in my session.

  9. fishwithoctopus commented on Oct 27, 2026

    @fishwithoctopus

    Adding a related observation from a Windows user of ChatGPT Work/Codex (October 2026).

    • Image thumbnails and side-panel previews were visible, but the agent could not actually read the image contents in the affected conversation.
    • The failure was not isolated to one conversation: other conversations in the same project also could not read images on the same day.
    • The original affected conversation subsequently developed additional problems. I cannot confirm that those problems share the same root cause as the image-access failure.
    • On the following day, image reading worked again when opening a different conversation, while the original affected conversation still could not read images.

    This suggests a possible conversation/session-specific persistent failure alongside a temporary broader issue affecting multiple conversations. It is an observation, not a confirmed diagnosis. I did not capture the exact underlying error code, so I cannot confirm this is the same attachment-directory os error 5 reported above.

    Expected: the agent should be able to access image content when an attachment is available, and a failed session should recover or provide an actionable error rather than remaining unusable after other conversations recover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions