Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




620 posts

Ultimate Geek


#150702 31-Jul-2014 12:01
Send private message

When attempting to upload some images using copy-paste into the WYSIWYG (as I've done below) sometimes the GZ language filter will pickup words out of the Base64 encoded image string as "bad words" (which is likely to happen when you're parsing 2KB+ strings of pseudo-random text).



Solution would be to not check words between <img src=" and " but probably the same issue with posting certain random URL's.

(Or we could all promise to be adults and drop the filter all together)...

Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
2201 posts

Uber Geek


  #1099222 31-Jul-2014 12:13
Send private message

I've seen a couple of threads about this sort of thing in the past.

I particularly like how you've now managed to post those two bad words using an image.




Location: Dunedin

 




620 posts

Ultimate Geek


  #1099226 31-Jul-2014 12:18
Send private message

andrewNZ: I've seen a couple of threads about this sort of thing in the past.

I particularly like how you've now managed to post those two bad words using an image.


Well it was also rather coincidental that the words appeared in the two screenshots (one in each) I was trying to post showing VF login errors... which may have resembled what I was thinking when I hit the first error, then the second one.

Offending images here with offending string replaced with FUCX & Cunx respectively (so obviously not going to display properly):









 
 
 
 


gzt

11340 posts

Uber Geek

Lifetime subscriber

#1099235 31-Jul-2014 12:34
Send private message

That screenshot looks a lot larger than it needs to be and would probably have annoyed the mods on that basis anyway. But more helpfully.. maybe a lot less compression in the image (and going to b&w) and your base64 edit would not matter so much : ). Ok, I know it's not that helpful.



620 posts

Ultimate Geek


#1111796 20-Aug-2014 09:03
Send private message

Still getting this error, still annoying...

Is the filter rrrreaallly necessary?



620 posts

Ultimate Geek


  #1111805 20-Aug-2014 09:17
Send private message

Or at least turn language filter off for subscribers, I would probably subscribe for that...

15141 posts

Uber Geek

Trusted
Subscriber

  #1111812 20-Aug-2014 09:36
Send private message

Language filters are essential.




Mike
Change Management Consultant
The views stated in my posts are my personal views and not that of any other organisation.

 

He waka eke noa




620 posts

Ultimate Geek


#1111814 20-Aug-2014 09:43
Send private message

KiwiNZ: Language filters are essential.


Oh ok, my mistake, problem solved.

 
 
 
 




620 posts

Ultimate Geek


  #1112700 21-Aug-2014 11:10
Send private message

Also get 500 errors quite often when trying to submit posts with pasted images and more often when sending PM with pasted images, probably related..

BDFL - Memuneh
67108 posts

Uber Geek

Administrator
Trusted
Geekzone
Lifetime subscriber

  #1112811 21-Aug-2014 13:29
Send private message

Not all browser support paste images and these may have problems sometimes. Suggest uploading to Geekzone and using the BBCODE.







620 posts

Ultimate Geek


#1112840 21-Aug-2014 14:19
Send private message

freitasm: Not all browser support paste images and these may have problems sometimes. Suggest uploading to Geekzone and using the BBCODE.



Check your logs, I'd say likely some SQL error when trying to save the mass of text, or hitting some sort of char/byte limit.

I don't blame you though; I wouldn't want a bunch of essentially BLOBs being stuffed into my carefully optimised database however it's just oh so convenient for the end user..

Any plans on the horizon for a better image upload function then? (have seen requested a few times & would prob subscribe for that to).

As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...
An integrated uploader would be nice; or yeah could just get the base64 copy-paste working and make it the standard (sorting out the storage/optimisation backend - I'm sure the scripts already exist or probably an option in some WYSIWYG's to save base64 blobs to file on upload).

EDIT: Personally haven't come across any modern browsers that don't support images this way, loads of large sites do it however as mentioned you can sort that backend if you like and just convert to a file for display.

gzt

11340 posts

Uber Geek

Lifetime subscriber

  #1112883 21-Aug-2014 15:07
Send private message

Iirc (it's been a while) I usually use a free external image host for this service and inline it with the bbcode img tag. Less steps in the process because many of those services provide simple small/medium/big choices and that's that. Yeah the host might disappear after a couple of years but it's not an issue for ephemeral discussions.



620 posts

Ultimate Geek


  #1112894 21-Aug-2014 15:20
Send private message

gzt: Iirc (it's been a while) I usually use a free external image host for this service and inline it with the bbcode img tag. Less steps in the process because many of those services provide simple small/medium/big choices and that's that. Yeah the host might disappear after a couple of years but it's not an issue for ephemeral discussions.


You know of a good one to use?

gzt

11340 posts

Uber Geek

Lifetime subscriber

  #1112938 21-Aug-2014 16:21
Send private message

I don't really think about it. There are tons of them. I just use the first one that comes up in google search. Today that is http://postimage.org/ no login required and many resizing options. You could also look at http://tinypic.com/ - of the names I looked at today that one has the biggest financial backer - owned by Photobucket.

'That VDSL Cat'
12169 posts

Uber Geek

Trusted
Spark
Subscriber

  #1112944 21-Aug-2014 16:28
Send private message

kenkeniff: 
As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...

i tend to use imgur due to the fact that it takes easily 4 times as long to do the whole geekzone image upload system.


screenshot tool, instantly uploaded and in my clipboard, paste on geekzone. 

Simple and effective.


used to use photobucket, but their servers can be so slow, and they do dodgy things to photos unless you include ~original which breaks in many browsers last i checked...




#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have.

 




620 posts

Ultimate Geek


  #1112952 21-Aug-2014 16:36
Send private message

hio77:
kenkeniff: 
As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...

i tend to use imgur due to the fact that it takes easily 4 times as long to do the whole geekzone image upload system.


screenshot tool, instantly uploaded and in my clipboard, paste on geekzone. 

Simple and effective.


used to use photobucket, but their servers can be so slow, and they do dodgy things to photos unless you include ~original which breaks in many browsers last i checked...



I went to imgur, got distracted looking the funny pictures then after about 10min forgot what I was doing there..

 1 | 2
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

OPPO Find X2 Lite brings flagship features to mid-range 5G smartphone
Posted 29-May-2020 12:52


Sony introduces the digital camera ZV-1 for content creators
Posted 27-May-2020 12:47


Samsung Announces 2020 QLED TV Range
Posted 20-May-2020 16:29


D-Link A/NZ launches AI-Powered body temperature measuring system
Posted 20-May-2020 16:22


NortonLifeLock Online Banking Protection now available for New Zealand banks
Posted 20-May-2020 16:14


SD Express delivers new gigabyte speeds for SD memory cards
Posted 20-May-2020 15:00


D-Link A/NZ launches Nuclias cloud managed network solution hosted in Australia
Posted 11-May-2020 17:53


Logitech introduces new video streaming solution for home studios
Posted 11-May-2020 17:48


Next generation Volvo cars to be powered by Luminar LiDAR technology
Posted 7-May-2020 13:56


D-Link A/NZ launches Wi-Fi Certified EasyMesh system
Posted 7-May-2020 13:51


Spark teams up with Microsoft to bring Xbox All Access to New Zealand
Posted 7-May-2020 13:01


Microsoft plans to establish its first datacenter region in New Zealand
Posted 6-May-2020 11:35


Genesis School-gen has joined forces with Mind Lab Kids
Posted 1-May-2020 12:53


Malwarebytes expands into privacy with fast, frictionless VPN
Posted 30-Apr-2020 16:06


Kordia to donate TV airtime on Channel 200 to community groups
Posted 30-Apr-2020 16:00



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.