Commit 7c5ca19
authored
Fix file saving failure for names exceeding 200 characters
Before:
- If a user inputs a file name longer than 200 characters, the OS rejects it and the file does not get saved.
After:
- Leading and trailing whitespaces are removed from the filename.
- The filename is automatically truncated to a maximum of 200 characters before saving, preventing the crash.1 parent 83c3315 commit 7c5ca19
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
0 commit comments