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.




563 posts

Ultimate Geek
+1 received by user: 89


Topic # 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
1785 posts

Uber Geek
+1 received by user: 946


  Reply # 1099222 31-Jul-2014 12:13
2 people support this post
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



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 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):









 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software

gzt

9576 posts

Uber Geek
+1 received by user: 1397


Reply # 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.



563 posts

Ultimate Geek
+1 received by user: 89


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

Still getting this error, still annoying...

Is the filter rrrreaallly necessary?



563 posts

Ultimate Geek
+1 received by user: 89


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

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

11873 posts

Uber Geek
+1 received by user: 5510

Trusted

  Reply # 1111812 20-Aug-2014 09:36
4 people support this post
Send private message

Language filters are essential.




Mike
Retired IT Manager. 
The views stated in my posts are my personal views and not that of any other organisation.

 

 It's our only home, lets clean it up then...

 

Take My Advice, Pull Down Your Pants And Slide On The Ice!

 

 




563 posts

Ultimate Geek
+1 received by user: 89


Reply # 1111814 20-Aug-2014 09:43
One person supports this post
Send private message

KiwiNZ: Language filters are essential.


Oh ok, my mistake, problem solved.



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 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
59991 posts

Uber Geek
+1 received by user: 11092

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 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.







563 posts

Ultimate Geek
+1 received by user: 89


Reply # 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

9576 posts

Uber Geek
+1 received by user: 1397


  Reply # 1112883 21-Aug-2014 15:07
One person supports this post
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.



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 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

9576 posts

Uber Geek
+1 received by user: 1397


  Reply # 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'
7493 posts

Uber Geek
+1 received by user: 1487

Trusted
Spark
Subscriber

  Reply # 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.




563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 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 »

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 »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48


Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48



Geekzone Live »

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



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.