Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image url display with non-image extention in Upload #9936

Merged
merged 1 commit into from Apr 4, 2018

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Apr 4, 2018

Improve the image-judgement behavior in #9621 cc @zswang .

Now we need to use file.isNotImage to indicate the non-image files in uploadList.

close #9835

close #9681

@ant-design-bot
Copy link
Contributor

ant-design-bot commented Apr 4, 2018

Deploy preview for stupefied-hodgkin-56a61d ready!

Built with commit d9fe8ca

https://deploy-preview-9936--stupefied-hodgkin-56a61d.netlify.com

@afc163
Copy link
Member Author

afc163 commented Apr 4, 2018

Awesome deploy preview!

now we treat url following below rules:

1. `data:image..` => image
2. `http://xxx.com/xxxx.(webp|svg|png|gif|jpg|jpeg)` => image
3. `http://xxx.com/xxx.zip` other extensions => non-image
4. `data:application..` other minetypes in base64 text => non-image
5. `http://xxx.com/xxx` without any extensions => image

close #9835

close #9681

ref #9621
@afc163
Copy link
Member Author

afc163 commented Apr 4, 2018

@yesmeck Is the deploy/netlify can detect deploy status of site? Maybe we can remove npm run site in travis.yml which is too slow.

@afc163 afc163 mentioned this pull request Apr 4, 2018
1 task
@yesmeck
Copy link
Member

yesmeck commented Apr 4, 2018

Yes, netlify will send notification if deploy fails.

@codecov
Copy link

codecov bot commented Apr 4, 2018

Codecov Report

Merging #9936 into master will increase coverage by 0.01%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9936      +/-   ##
==========================================
+ Coverage   86.27%   86.29%   +0.01%     
==========================================
  Files         197      197              
  Lines        4722     4734      +12     
  Branches     1316     1320       +4     
==========================================
+ Hits         4074     4085      +11     
- Misses        645      646       +1     
  Partials        3        3
Impacted Files Coverage Δ
components/upload/UploadList.tsx 88.54% <93.75%> (+0.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1612ef6...d9fe8ca. Read the comment docs.

@afc163 afc163 merged commit a9376ef into master Apr 4, 2018
@afc163 afc163 deleted the fix-upload-picture-style branch April 4, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upload component need notice or doc 当使用upload的listType选择picture-card时出现问题
3 participants