Commit c5219e8
committed
Do not append file into FormData if already has !
Sometimes people may want to minimize the file size and will do some compress then set the new compressed file into the form.
Therefore when data already contains new file, do not append the original one.1 parent dc8968e commit c5219e8
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1756 | 1756 | | |
1757 | 1757 | | |
1758 | 1758 | | |
1759 | | - | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
1760 | 1762 | | |
1761 | 1763 | | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
1762 | 1767 | | |
1763 | 1768 | | |
1764 | 1769 | | |
1765 | | - | |
1766 | | - | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1767 | 1775 | | |
1768 | 1776 | | |
1769 | 1777 | | |
| |||
0 commit comments