Type: Posts; User:
You have to pay special attention to the UploadedFile::deleteUploadedFiles() function.
I guess it'll be a question of rights. Check if you have delete rights for the image directory.
You have to get the names of the images stored in your database. Example:
$itemId = mysql_real_escape_string($itemId);
$sql = '
SELECT image1, image2, image3
Sorry, didn't understand well.
If you want to see where the images loop is performed to store them into the database, you have to follow the configuration variable...
Sorry for the delay, too busy.
You have to set the configuration variable "formsCount" to 1. Thus you'll have just 1 file field.
I guess, the only thing you need to adapt is the $previewDiv...
Short answer is: yes, it can be done.
The 'localhost/' path is relative and was being appending to the root one, 'http://localhost'. That's why I suggested a path from the root (with a preceding slash), '/localhost/', or a complete path,...
Maybe you should place a '/' before your path. Try 'urlRoot' => '/localhost/'.
You can also try with complete url 'urlRoot' => 'http://localhost/'.
Here I place a function to update uploaded images with no loop.
It takes two arrays, one with the images comming from the form (which may contain some changes or not) and one with the images...
Glad to hear it :)
Check the Initialize forms to update files section in the documentation (http://dondedeportes.es/uploader-previewer). There you can see:
You are right, sometimes the dialog box after saving has no sense. That's why I've developed a new version of the plugin including two new configuration variables:
Thanks for that :)
Hope everything goes ok, but if you have any issues, please let me know.
The very first version of the plugin is deprecated. Please, download the one from the demo:
You can reach it also from the official jQuery plugins...
Thanks for using this plugin.
You can configure the image sizes with the variable $uploadData, in /php/configuration.php.
There you may add or remove resizing groups...
I have uploaded a online demo of the plugin here
Hope it is useful for anyone.
If you have any comments, please post them on this forum.
In order to trigger the save() function, you must bind the function (or any function that calls it) to the click event of the button. It is done within the $(document).ready()...
The functions for the form are in itemForm.js. I'll explain the code flow to submit a form:
1 - When the button "save" is clicked, the function itemForm.js > save() is triggered.
Great, I hope you have everything running now :)
I think I haven't understood the question.
Do you ask for the structure of the array? Or are you asking how can you call a function that inserts the uploaded images in a database?
As already said: Glad to be able to help :)
Glad to be able to help :)
A unique filename is generate by the function uploadedFile.php > getDescriptiveUniqueFilename(). A filename is generated with the given keywords. Three of these...
I have developed a new version of the plugin to support dynamic resizing groups. You can find it attached.
All you have to do now is to configure the variable $uploadData, in...
I'm afraid I haven't understood the issue correctly. But if what you want is to give the possibility of selecting a resizing dimension, you should do it in html, and then pass the value...
I am not sure if I have understood the question. An ajax request can send GET or POST parameters, the same as a html form.
Does this answer your question?