Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Feature Request]: Remove files from file input after sucessful operation to allow continuous usage

Open Frooodle opened this issue 1 year ago • 7 comments

Feature Description

Remove files from file input after sucessful operation to allow continuous usage

Why is this feature valuable?

No response

Suggested Implementation

No response

Additional Information

No response

No Duplicate of the Feature

  • [X] I have verified that there are no existing features requests similar to my request.

Frooodle avatar Nov 04 '24 18:11 Frooodle

Hi @Frooodle, Can I work on this? And would it be possible to describe the feature idea in more detail? I didn't quite understand it.

thisisrenan avatar Nov 11 '24 21:11 thisisrenan

I can work on this!

rafael-encinas avatar Nov 11 '24 21:11 rafael-encinas

If you input a file into split pdf for example and hit process

The files remain in the input box

When you try add new files it instead appends them ontop Meaning for multiple operations you need to refresh

Appending is a feature users want so best solution is to wipe the input box after process complete

I see 2 people commented at same time... Not sure who to assign 😂

Frooodle avatar Nov 11 '24 21:11 Frooodle

@Frooodle I saw that lol, You can assign this to @rafael-encinas, I'll take the next one.

thisisrenan avatar Nov 11 '24 21:11 thisisrenan

Thank you @thisisrenan !

rafael-encinas avatar Nov 11 '24 21:11 rafael-encinas

If you input a file into split pdf for example and hit process

The files remain in the input box

When you try add new files it instead appends them ontop Meaning for multiple operations you need to refresh

Appending is a feature users want so best solution is to wipe the input box after process complete

I see 2 people commented at same time... Not sure who to assign 😂

@Frooodle, I'm trying to find where the change needs to be located.

Is the "allFiles" array on line 10 from the fileInput.js file where the files are being stored temporarily? Is this array the one that needs to be wiped after a successful job?

Thank you in advance!

rafael-encinas avatar Nov 11 '24 23:11 rafael-encinas

I believe allFiles along with e.target.files but its been a while :')

Frooodle avatar Nov 11 '24 23:11 Frooodle