Skip to content

fix: Improve upload authentication and add file filtering - #17

Merged
NerdsCorp merged 1 commit into
mainfrom
claude/fix-upload-authentication-ayHOI
Dec 28, 2025
Merged

NerdsCorp merged 1 commit into
mainfrom
claude/fix-upload-authentication-ayHOI

Conversation

@NerdsCorp

Copy link
Copy Markdown
Owner

This commit addresses two major issues with the upload functionality:

  1. Login Button Visibility & Token Validation:

    • Added JWT token expiration checking to detect expired tokens
    • Clear expired/invalid tokens and show login button when needed
    • Force UI refresh after updating authentication status
    • Handle 401 errors by clearing token and showing login button
    • Improved error messages for authentication failures
  2. File Filtering Like Package Update:

    • Added comprehensive file exclusion logic matching package update
    • Exclude DLLs, XML files, configs, logs, screenshots
    • Type-specific exclusions for client vs editor uploads
    • Handle asset packs properly (exclude packed sources for client)
    • Process .meta files to identify packed assets
    • Support for sound and music pack exclusions

The upload now behaves consistently with package update, filtering out unnecessary files and properly handling authentication state.

This commit addresses two major issues with the upload functionality:

1. Login Button Visibility & Token Validation:
   - Added JWT token expiration checking to detect expired tokens
   - Clear expired/invalid tokens and show login button when needed
   - Force UI refresh after updating authentication status
   - Handle 401 errors by clearing token and showing login button
   - Improved error messages for authentication failures

2. File Filtering Like Package Update:
   - Added comprehensive file exclusion logic matching package update
   - Exclude DLLs, XML files, configs, logs, screenshots
   - Type-specific exclusions for client vs editor uploads
   - Handle asset packs properly (exclude packed sources for client)
   - Process .meta files to identify packed assets
   - Support for sound and music pack exclusions

The upload now behaves consistently with package update, filtering
out unnecessary files and properly handling authentication state.
@NerdsCorp
NerdsCorp merged commit 98ace36 into main Dec 28, 2025
1 check passed
@NerdsCorp
NerdsCorp deleted the claude/fix-upload-authentication-ayHOI branch December 28, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants