Repository navigation
Allow the upload for plain text - #1926
Conversation
|
@cinnamonsalt, thanks for your PR! By analyzing the history of the files in this pull request, we identified @malkomich, @davivel and @tobiasKaminsky to be potential reviewers. |
|
Mario seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
ImprovementSteps
Current behaviour An error message is shown saying: "No file to upload. Received data do not include any valid file. Expected behaviour A specific error message is shown, giving information like: "You cannot upload the file without the .txt extension" and showing again the dialog to insert the file name. Tested with Nexus 6P v7.0 CC @cinnamonsalt |
|
I've reviewed your PR and tested your contribution @cinnamonsalt. Apart from the improvement I've added above, it looks good for me. When you have the improvement ready, please rebase with master, ping me and the next step will be passing QA. After that, your contribution may be included in the next release, 2.4.0. |
|
Thank you for adding the improvement @cinnamonsalt, could you please rebase with master to fix the out-of-date? After that, we will start with QA process |
|
@cinnamonsalt you are allowing to upload to oC with no control about the file extension, also is allowed without extension. I can set "file.pdf" as filename, and oC will show this file as pdf. I think that the plain text should be forced to be saved in files with .txt extension (or another plain text format). The best way is adding the extension after the user types the filename, and before queuing it @davigonz suggested you to set this control when no extension is set in the filename, his approach is also interesting to take in account |
ImprovementWhen the dialog to input the file name is shown, it would be cool that the soft keyboard appears as well to avoid the user tapping on the screen exactly on the cursor position (sometimes it is not easy to accurate with the exact cursor position, depending on how thick are your fingers 😉 ) to start to type. The same behaviour, for example, when a file is renamed. @cinnamonsalt NOTE: this behaviour only happens in phones, in tablets the keyboard is shown. |
|
I have realised that the limit for the shared text is 29K. Is this limit a system limitation? |
|
Great suggestions for improvements i will look into them as soon as i have time. |
|
Personally, I would request the name after selecting the target folder, just like @cinnamonsalt has already implemented it because, in the way you suggest, you could write a file name and after that, select a folder where there is already a file with the same name. By selecting the target folder before, you can select the file name accurately. |
I tried sharing text up to 60K without problems. |
|
@cinnamonsalt , could you rebase your branch on master to make it up-to-date so that can be merged? Thank you so much :) |
|
Works for me, though in general we prefer Thanks a lot! |
Related to #1647
BUGS & IMPROVEMENTS