Development log
変更ログ

Development 4/19

Image uploading

Several major changes have been made to image uploading. I hope this makes the experience more pleasant. Please let me know if you encounter anything that seems wrong.

  • Image uploader now supports drag and drop from computer folders and from other websites.

  • You can also upload images the classic way, by clicking the drag and drop area.

  • Copy + paste of image URLs is also supported. Copy + paste of actual image files is supported (from websites only). Note that you must put your cursor in the 'paste image or URL' box for this to work.

  • .webp uploads are still not supported (yet), but you can copy the image and paste it directly, and it will be saved as a .png instead.

  • For WordPress, Wix, Twitter, last.fm, and Ameba Owned, the system will attempt to grab the biggest version of the image (works only with drag and drop or copy + paste URL).

  • Fixed many bugs. Namely: issues with 'default image' and 'scanned by vkgy user' fields, and deletion issues, among many others.

  • Many aspects of the UI/UX have been improved.


All updates

  1. Corrected typo in image upload box.
  2. Made several changes to image template in images sections. Updated image sections so that thumbnails are links to full-size images. Simplified markup of 'is_default' and 'is_exclusive'. Changed 'is_default' to radio style input, so that, when an image is marked as 'default', other images are appropriately marked 'not default'. Moved results box and added a new 'uploading' box.
  3. Made several changes to style of image areas in 'images' sections. Altered thumbnail style and made 'status' section more visible. Made more responsive to small screens. Simplified width of 'data' section. Fixed error where empty list was displaying a top border. Updated 'data' section to be invisible while image is style uploading. Updated 'uploading' text to be invisible when an error is displaying.
  4. Made several changes to image uploader script. Corrected an error where radio inputs ('is_default') weren't being set correctly. Added error message for when a website has blocked drag and drop upload. Changed CROS proxy to self-hosted one--will have to keep an eye on this. Added check where if image uploaded is only image for that item, it's auto set as the default. Moved init scripts to after ID has been inserted for a newly-uploaded image; this should fix issue where images that were just uploaded weren't deleting correctly.
  5. Updated upload_image function to send back URL of image.
  6. Updated image_update function to treat is_exclusive as an array, since several inputs share that name.
  7. Changed how 'is_default' is handled when rendering image sections, to prevent errors where random images were setting/unsetting themselves as the default.
  8. Updated script function to include time in caching string, since it already does a check for file modified time anyway. This should fix issue with old versions being cached incorrectly.
  9. Updated delete_image function to correctly do fake delete if image is connected to more than one item, and real delete if one item or less. Also corrected language about only moderators being able to delete images.
  10. Corrected update_image script to make sure that it only links images to items once. Also changed variable names and added notes to make function more clear.
  11. Changed error message for wrong upload types.
  12. Fixed bug where uploading text in image upload section would be visible when it wasn't supposed to be.
  13. Added onError callback to inlineSubmit script.
  14. Added some additional error handling to image upload script.
  15. Slightly changed style of image gallery on artists pages.
  16. Changed number at which image galleries on artist pages require 'show more' to be clicked.
  17. Fixed conflicts with master branch.
  18. Moved some image upload styles to stylesheet, added 'accepts' attribute to image upload input.
  19. Updated regex in uploadImage script so that images dragged from Twitter will be saved as jpeg.
  20. Changed height of thumbnails in image upload area, and made status icon visible only when something's happening.
  21. Changed how update_image function handles default image link; was causing unnecessary error message when adding cover art to releases which hadn't been submitted yet.
  22. Updated message element in image upload section to only grab error messages from images; it had also been displaying error messages from adding a release, for example.
  23. Updated styles function to cache stylesheet based on date and time.

Want to support future updates?

vkgy runs on a custom platform developed by a very small team. If you appreciate what we do and want to help us grow, please consider becoming a VIP member!

Support vkgy
top