Better handling of uploaded files. #7688

Merged
Ruk33 merged 2 commits from 7687-535-upload-form-bugs into master 2022-09-19 22:42:16 +02:00
Ruk33 commented 2022-09-14 01:19:27 +02:00 (Migrated from github.com)

Fixes

Issue Number:

What is the current behavior?

The behavior when selecting a file is different
than the behavior when it's dragged and dropped.

What is the new behavior?

The behavior when selecting a file and
dropped no longer differs.

Other information

PR Checklist

Toggle...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: - https://github.com/lbryio/lbry-desktop/issues/7687 - https://github.com/lbryio/lbry-desktop/issues/7685 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? The behavior when selecting a file is different than the behavior when it's dragged and dropped. ## What is the new behavior? The behavior when selecting a file and dropped no longer differs. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> <details><summary>Toggle...</summary> What kind of change does this PR introduce? - [x] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [x] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
jessopb (Migrated from github.com) reviewed 2022-09-16 18:34:20 +02:00
jessopb (Migrated from github.com) left a comment

I tried this out - after selecting a transcoded video, it still says "your video may not be the best format.

I tried this out - after selecting a transcoded video, it still says "your video may not be the best format.
@ -85,4 +83,3 @@
fileVid: false,
});
}, NAVIGATE_TIME_OUT);
}, HIDE_TIME_OUT);
jessopb (Migrated from github.com) commented 2022-09-16 18:33:59 +02:00

The purpose of these lines was to do the math to guess Mbps and judge whether file needs to be transcoded (is a video, and size is large compared to duration). Is that done somewhere else now?

The purpose of these lines was to do the math to guess Mbps and judge whether file needs to be transcoded (is a video, and size is large compared to duration). Is that done somewhere else now?
Ruk33 (Migrated from github.com) reviewed 2022-09-16 21:15:17 +02:00
@ -85,4 +83,3 @@
fileVid: false,
});
}, NAVIGATE_TIME_OUT);
}, HIDE_TIME_OUT);
Ruk33 (Migrated from github.com) commented 2022-09-16 21:15:17 +02:00

@jessopb yes, it was removed so this logic happens only in one place (publishFile/view.jsx)

@jessopb yes, it was removed so this logic happens only in one place (publishFile/view.jsx)
jessopb (Migrated from github.com) reviewed 2022-09-16 22:34:46 +02:00
@ -85,4 +83,3 @@
fileVid: false,
});
}, NAVIGATE_TIME_OUT);
}, HIDE_TIME_OUT);
jessopb (Migrated from github.com) commented 2022-09-16 22:34:45 +02:00

Ok. The messaging seems wrong. Your video may not be the best format. is always the message which is the message for (isVid && !duration) so something isn't working.

Ok. The messaging seems wrong. `Your video may not be the best format.` is always the message which is the message for (isVid && !duration) so something isn't working.
jessopb (Migrated from github.com) approved these changes 2022-09-19 22:41:52 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#7688
No description provided.