langflow icon indicating copy to clipboard operation
langflow copied to clipboard

FileUpload not load the name into the path

Open cwgbittencourt opened this issue 1 year ago • 3 comments

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 avatar Nov 16 '24 22:11 cwgbittencourt

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.

dosubot[bot] avatar Nov 16 '24 22:11 dosubot[bot]

@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

erichare avatar Nov 18 '24 19:11 erichare

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

cwgbittencourt avatar Nov 20 '24 16:11 cwgbittencourt

Instalando o Langflow1.1.1 via docker o problema foi resolvido. Não consegui instalar via pip no Windows. image

cwgbittencourt avatar Nov 26 '24 19:11 cwgbittencourt

Problem solved by installing version 1.1.1 via docker

cwgbittencourt avatar Nov 26 '24 19:11 cwgbittencourt