set_image_upload function??
- Single Page
Posted 14 March 2012 - 17:05 PM
I realise, in the [b]grocery config[/b], there're a few paremeters of "image upload": image_upload_allow_file_types, image_upload_max_file_size, image_upload_default_dir, image_upload_default_url, image_upload_max_width, image_upload_max_height, image_upload_thumb_width, image_upload_thumb_height and image_upload_create_thumbnail.
However, I don't see in the library any function like "[b]set_image_upload[/b]".
I'd like, in the same form, to upload a "[b]normal file[/b]" and a "[b]image file[/b]", and to check (to validate), from the config file, for example, the "file_upload_allow_file_types" (for the "normal file") and the "image_upload_allow_file_types" (for the "image file"). How could I do that?
Thanks for the attention.
Posted 14 March 2012 - 18:44 PM
Posted 15 March 2012 - 08:37 AM
Posted 16 March 2012 - 12:40 PM
Posted 20 March 2012 - 21:57 PM
Posted 27 March 2012 - 13:28 PM
Posted 27 March 2012 - 16:46 PM
In the attached file you can find my changes between something like this
// *** MEU *****
(new code)
// **************
Just search "MEU".
The problem, it's not working. The validation of "allow_file" and "max_file" is ok, but I get the error "An error has occurred on uploading." when it's trying to upload. Could you have a look in the file and find what I did wrong? Just realise, the folder of "css" and "js" files it's not the same than the original library.
Thanks a lot.
PS: It could be awesome, once it be working, instead of appear a link to the image uploaded, to see a thumbnail like your example.
EDIT: I found the problem, now it's working. I attach the file again, the good one.