Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Image upload for Questions and Answers

1

728 views
Just want to post a little update on the image upload functionality

I am currently working on adding image upload functionality to the text editor.
I am using this plugin to YUI RTE as a starting point:
http://allmybrain.com/2010/06/16/yui-image-uploader-works-with-yui-2-8-1/

It's a good start, I have already made changes to JavaScript to make it work with YUI3 based functions.
Now I'm working on the server-side functionality.

It's not a difficult task but there are just a lot of little things I have to implement on the server.
Here is the list:

Only logged-in users will be able to upload images
Uploading of image will be a separate Access permission, configurable in the acl.ini, by default will be enabled for registered users
A configuration option will be used to require minimum reputation in order to allow image upload
Configuration options for image upload: max file size, max width and max height.
Image will be resized to fix max width and height. If image had to be resized then the original is also saved separately so that later we can have option to view the original
If user does not have permission or enough reputation to upload image then the image upload button will not even be added to the text editor. Additionally the same permissions/reputation will be checked on the server after image is uploaded just to be sure...
Extra check will be in place to prevent more than "N' uploads per minute. This is to prevent attempts to overload the server by uploading hundreds of images rapidly.

As you can see there are quite a few functions I have to implement and test. It's not very difficult but it will take time, so please be patient - the image upload functionality is coming... I would estimate to take about 4 more days. I mean working days, and since I work on Lampcms only on weekends it may take up to 4 more weeks.


 
asked September 8, 2012 at 7:56 AM

 us

2 Answers

0
 
I noticed that the YUI RTE from that link has a local upload button. Any plan to implement that here?
flag
answered September 14, 2012 at 3:18 PM
That's what I was talking about. I am adding upload feature to the YUI RTE using the script from that url. There is still alot of work to be done on the server side. It has to be configurable from config file, using current user permissions, reputation based permissions. etc.
flag
Sep 14, 2012 05:45 PM
0
 
The image upload here only allows adding an image from an online resource. Since uses will likely be adding images from their local PC, it would be nice to add that feature.

Is that in the pipeline?
flag
answered September 13, 2012 at 12:05 PM

Your answer

Join with account you already have

FTTF

Preview

Alert