Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileUpload not load the name into the path #4654

Open
cwgbittencourt opened this issue Nov 16, 2024 · 3 comments
Open

FileUpload not load the name into the path #4654

cwgbittencourt opened this issue Nov 16, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cwgbittencourt
Copy link

Bug Description

File Upload on multiple attempts does not load the name into the Path field. The problem has been since version 1.018 and is occurring in the current version also 1.1.0
image

Reproduction

image

Expected behavior

When choosing the file, its name and extension would be loaded into the Path field of the component

Who can help?

No response

Operating System

Windows 10 and Ubuntu 22.04

Langflow Version

1.0.18 and 1.1.0

Python Version

3.11

Screenshot

image

Flow File

No response

@cwgbittencourt cwgbittencourt added the bug Something isn't working label Nov 16, 2024
Copy link

dosubot bot commented Nov 16, 2024

The issue you're experiencing with the FileUpload component not loading the file name into the path field could be related to specific conditions or validations in the component. Here are some potential reasons why this might be happening:

  1. File Size Validation: If the file does not pass the size validation check, it won't be uploaded, and the name won't be assigned to the path field. Ensure that the file size is within the acceptable limits.

  2. File Type Validation: The file type must be allowed. If the file type is not among the permitted types, the upload will fail, and the name won't be assigned.

  3. Component State: If the component is disabled or in a state that prevents updates, the file name might not be assigned to the path field.

These validations are part of the component's logic to ensure only valid files are processed [1][2]. You might want to check these conditions in your setup to see if they are causing the issue.

To continue talking to Dosu, mention @dosu.

@erichare
Copy link
Collaborator

erichare commented Nov 18, 2024

@cwgbittencourt i'm a little confused on this one, can you clarify a couple things?

  1. Which browsers have you tried this on?
  2. Does it never load the file, no matter which file you choose? Or is it specific to cosmos.pdf?

I have tested a number of files, and after upload it looks something like the below screenshot. I'm just trying to figure out if this is a browser, file, operating system, or some other issue... Can you share any output from clicking the Data output in the bottom right of the component?

Screenshot 2024-11-18 at 11 22 49 AM

@cwgbittencourt
Copy link
Author

1 - Which browsers have you tried this on?
Chrome Version 131.0.6778.86 (Official Build) 64-bit and Microsoft Edge Version 131.0.2903.51 (Official Build) (64-bit)

2-Does it never load the file, no matter which file you choose? Or is it specific to cosmos.pdf?
I can choose any file. Does not load.

OS Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants