ADDT multi image upload leads to Fake Record error???

Rather than using a Wizard to create a multi image upload (which wasn't
work!), I created an insert record page, and then created an "upload &
resize image" file action on each of three fields:
Thumb
ItemImage
LargeImage
I designated these fields as file fields in the Insert Record setup, even
though they are text fields because that allows a browse button to be added.
I then added the Upload and Resize action on each of those fields and there
is a place to store the image name in the fields for Thumb, Large, etc.
It appears to be correct, but I got this error when trying to load the page:
Error:
Internal error.
Developer Details:
tNG_fields.getFakeRecordset:
SQL error: Error creating temporary table:
Table 'KT_fakeRS_20080918' already exists <<<<<<<<<<<<!!!!
SQL:
CREATE TEMPORARY TABLE KT_fakeRS_20080918 (LargeImage TEXT, ItemName TEXT,
ItemShortDesc TEXT, ItemLongDesc TEXT, ItemCatID TEXT, LHJ_Number TEXT,
ItemType TEXT, BrandName TEXT, ItemQuantity TEXT, Price TEXT, ItemThumb
TEXT, ItemImage TEXT, catID TEXT) (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
tNG_insert.executeTransaction
STARTER.Trigger_Default_Starter
tNG_insert.getRecordset
tNG_insert.getLocalRecordset
tNG_insert.getFakeRecordset*
Why does this table exist? Is there some duplication in the ADDT code when
adding Upload actions to an existing Insert Record set?
Jeff
Jeff
~~~~~~~~~~~~
Jefferis Peterson, Pres.
Web Design and Marketing
http://www.PetersonSales.com

On 9/19/08 7:05 PM, in article C4F94626.7F2EF%[email protected],<br />"Jefferis Peterson" <[email protected]> wrote:<br /><br />> <br />> Okay, I'm having a problem here. ItemThumb is a text field that stores the<br />> name of the gif or jpg file.<br />> <br />> I have 3 upload file fields  (large, medium, thumb) which are supposed to<br />> store their values (file names??) in the text fields, and I have set  the<br />> ItemThumb to receive its value on insert from the file field.<br />> There seems to be a duplication of field insertion requirements here, so I'm<br />> not sure what to make of the problem, but if I remove the text fields from<br />> the insert transaction, there is no option to store their names in those<br />> fields in the file upload dialog box....<br />> <br />> What is odd is that I'm not getting that error on the medium image text file<br />> even thought it is setup exactly the same as the thumb text...<br />> Jeff <br />> <br />> ~~~~~~~~~~~~<br /><br />After checking the database online, it is adding the information to all the<br />file fields but it is not uploading the images to the directories... Not<br />sure what the reason for the error is...<br />~~~~~~~~~~~~<br />Jefferis Peterson, Pres.<br />Web Design and Marketing<br />http://www.PetersonSales.com

Similar Messages

  • ADDT multiple image upload: "error 500"

    Right now, I have managed to get the update record form wizard working, the right input ends up in the correct fields in the database.
    So I'm left fighting with the "multiple image upload", which gives me an "error 500" message (error connecting to server)
    The window does show me the correct files in the correct folder, but when I try and upload an image I always get the error 500 message.
    I have read that the "multiple file upload" uses a temporary folder, and Im assuming that the "multiple image upload" does the same, and I suppose that I should CHMOD that folder to 777.
    Do you know where I can find that folder?
    Can anyone help me with that error?
    Please?
    Sorry about my name, I tried a lot of other names, and all were taken, but this random name went just fine

    I thought it did - When I used the upload and save to database it saved the original images in a folder and created a sub folder called "thumbnails" and saved the thumbnails - origianl filesname just with width and height appended at the end.
    I checked my server files and their definately created.
    I browsed the java script and the help files which mentions it does this but I would like to be able to change the naming format of the thumbanils if possible

  • Custom Thumbnail Size(px) w/ADDT Multiple Image Uploader

    The standard thumbnail size that the Multiple Image Uploader generates is 150px x 100px
    I would like to know if there is any way to change that to 350 x 300?
    I am refering to the thumbnail that is generated and put into the
    thumbnails folder, not the thumbnail for the uploader itself :)
    Thank You!

    Hi Jason,
    this particular thumbnail size appears to be defined in the file "includes/tng/triggers/tNG_MImageUpload.class.php" -- here´s a function named "tNG_MImageUpload" with the following line:
    $this->showThumbnail(150,100,true);
    Guess you´ll have to change the thumbnail width-X-height values in here.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Image upload / resize in "Update Record" form?

    Hi
    I've created a form to add products to a database, it includes an image field using the "upload and resize image" behavior. This works fine.
    But now I'm building the uèpdate form and want to offer users the possibility of either retaining the current file, uploading a new image to the server (and delete/overwrite the previous one if it exists) or delete the current image without uploading a new one.
    how would i go about this?
    thanks.

    Hi Waleed,
    oops, yes, sorry, you´re right of course -- just didn´t read it too carefully :-)
    However, what Somaboy and Dave want, is a little different from what the tutorial explains at this point -- what´s explained there, will of course be deleting that image physically and erasing the file name entry from the table, but that won´t cover the requirement to additionally upload another picture from the same form.
    In this special case I *think* that one would have to perform both deletion processes as "before" triggers -- to make sure that the file as such plus the corresponding table entry are really gone before the upload procedure happens.
    If someone will ever find out a well-working strategy to get this
    (BTW very often asked for) requirement done, many folks here would certainly jump for joy -- also because that´s something you apparently can´t do without implementing a chain of at least custom triggers.
    But there´s also a much easier solution available to those folks who don´t want to bother with implementing custom triggers for this purpose alone :: this is how I´d do it:
    1. use what´s described in step 3 of the tutorial you posted to delete the physical file and the "filename" column entry
    2. pass the current recordset´s ID to the "redirect after update" page, and here...
    3. add a "SELECT file_column FROM table_name WHERE ID" matches the URL parameter ID - query in order to check if this column is empty or not -- and if it´s empty, execute an "upload and resize image" behavior on this page.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Multiple image upload CRASH!!! but works with simple image upload

    I'm getting MAD.
    I'm using php and GD
    While the simple image and re size works like a charm, the multiple image upload or the multiple file upload have a strange behavior.
    It opens the pop-up with flash, then eventually shows me files or thumbnails but when I try to up load I just wait and get the typical "system becoming unstable" flash error.
    As I can see the directory is always generated (I've tried also to put a static directory) but after stargin the upload the flash uploader just crashes and no result.
    Any help would be really appreciated

    Hi Fonzie,
    as the folder is getting created, the issue you´re having is not related to wrong folder permission - it´s something else...
    As I wrote before, che common upload and resize function works perfectly
    this one works perfectly, because it´s just one file to upload and to process, wheras doing that with multiple files might collide with some settings on your server
    So for sure it's not a simple issue as the max filesize
    Are you sure ? Did you check the current "max_upload_filesize" setting ? As long you don´t check it, you can´t know :-)
    As a general rule of thumb, it´s important to be aware of the fact that uploading & resizing images on the server might collide with several PHP settings -- and the more images you upload and resize in one swoop, the closer you´re getting to these limits respectively might even be exceeding them. The following "directives" are those which have an effect on whether your image/file upload & processing will work or not:
    - "max_upload_filesize" :: is sometimes set to just 8 MB on a shared hosting, sometimes 16 MB, sometimes more. This setting will affect the file upload procedure only
    - "set_time_limit" (e.g. 30 seconds) :: if the execution time of a script exceeds this limit for whatever reason, the server simply shuts it down without letting you (respectively the flash uploader) know it´s been shut down. This *might* be the reason why ADDT´s flash uploader hangs respectively returns that error message after some time, because it´s waiting for some response from the server which never comes.
    - "memory_limit" (e.g. 8 MB) :: this directive is a sort of "allocated server RAM" for your account, and it´s in particular the image resizing process which will grab more or less memory resources -- the higher the the resizing factor is, the more RAM is spent, and the more images are getting resized in one swoop, the worser it gets.
    However, all these PHP directives can be changed, and your host might even be so courteous to increase the currently defined values of those abovementioned directives for you -- and that´s what I´m suggesting at this point.
    Cheers
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Multiple Image Upload with save to database not working in IE anymore

    Since updating IE to SP3 ADDT Multiple Image Upload with save to database does not work anymore in IE. It will show a regular file upload field, an does not allow selection of multiple files. It does work in Firefox, but not all my clients use firefox.
    PSE Advice.

    I would consider buying some pluggins from dmxzone.com. They
    may cost a
    bit upfront but in the long run, you've probably be saving a
    lot of
    headaches.
    http://www.dmxzone.com/
    If time's an issue, with these plugins, you could probably
    be up and
    running in a half hour. George has some really nice pluggins
    for
    Dreamweaver and well worth the money.
    Peter Raun wrote:
    >
    I am going crazy here
    > I will see if i can explain my problem here. . .
    > I am trying to use the multiple image upload with save
    to database function in
    > the developer toolbox, and it work just fine, it lets me
    select where to store
    > the filename in database and where i want to save the
    actual image on the
    > server. It is wery easy to use if you just want these
    functions.
    > But i would also like to give every image a gallery id
    in the database, so i
    > can sort them out afterwards, its not whery smart to
    upload a lot of images to
    > a folder, and in the database you just have an image id
    and an filename, i cant
    > sort them into galleries with these to collums. . . . So
    i guess i have to do
    > something with the "additional fields" when i am
    creating the server behavior
    > but i cant figure out what to do?? i would have liked if
    i could have made an
    > list/menu with all of the availible galleries, and chose
    the one that i whould
    > add images too and then that gallery id whould be added
    to those images in the
    > database.
    > I have also tried to pass on an url parameter and then
    use that as a default
    > value in the "additionel field" section but without any
    luck at all. . . I hope
    > someone here has an idea, that could help me out. . .
    > It is sooooo easy to do this, when you are uploading ONE
    image at a time, i
    > cant figure out why it has to be sooooo hard when using
    "multiple image
    > upload"
    >

  • Multiple Image Upload and watermarking

    Hi,
    I am using a gallery script which takes main images from a dynamic folder and creates thumbnails on the fly.
    It gets the main images dynamically from
    $config['fulls'] = $_GET['imgfolder_id'];
    Then GD is applied to create thumbnails on the fly. There is no GD role for the main images. I use lightbox to show pop-up image. And the images are uploaded to a dynamic folder using ADDT multiple image upload server behavior.
    My requirement: want to apply water mark on the large (pop-up) image. Not on the thumbnail.
    Is it possible to have the water mark applied at the time of Multiple Image Upload?
    Thanks for any help
    Jay

    Hi Jay,
    if it were a single image upload, I would have suggested to apply a PHP watermark script to the uploaded image by embedding that code in a Custom Trigger, type AFTER -- but as the multiple upload gets proceeded by a flash file, I have no clue how to do that.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Multiple image upload problem

    When trying to use the Multiple Image Upload feature I get this error
    A script in this movie is causing Flash Player 9 to run slowly, if it continues your computer may become unresponsive. Do you want to abort the script?
    This message pops up after a single file is uploaded, the second bar labeled progress remains at 0%.
    I have experimented with this all day with no luck, any help would be great...
    Forgot to mention, PHP/MYSQL
    Also happens if I try multiple file upload vs. image.
    I can't tell if it's ADDT or Flash, hopefully since they are both adobe someone can figure it out.
    Thanks in advance...

    Thanks for the reply, in this case it was a server setting that had to be modified. Mod_security would not allow folder creation by Apache. The single up loadd worked fine because it did not have to write a directory.
    It did not show up in the server logs for some reason.
    Hope this saves someone hours of trouble shooting.

  • Multiple Image Uploading Question

    Please forgive my ignorance here but I saw the question on multiple image uploading and this is something i have been trying to do for a few days now without any success.
    I am using CS3 with ADDT and PHP
    I want to allow my users to be able to upload say 5 pictures at a time, each user has multiple photo albums the names of which are stored in mysql table, the image name is stored in a different table with a reference to the album id.
    So, I assume that i put an insert record on the page, I followed the usual process used to have a single image upload and thought it would give me or add the extra file field options on the form when telling the multi upload to allow 5 images to be uploaded, not the case. Do i have to create a form on the page first with 5 file fields or am i just missing the plot here.
    Sorry if this is just something that seems simple but i just don't seem to be able to get it to work at all. I have no working example to look over and have serach google to see if there are any tutorials for doing this but can't find any at all.
    Thank you in advance of any help and guidance given
    Regards
    Ray

    Hi Günter
    Thank you for your reply and also for the great tutorial site you run which has helped me quite a lot with several things.
    ok, so i am maybe a little confused here, so what is the multiple image uploader for if not for uploading multiple images, and how does it give you the option to select more than one file or is it that you can't use it when inserting the image file into a database?
    Please forgive my ignornace again, i can see when i have tried using the multiple image upload thatit puts a text link called upload, what is that for because it doesn't seem to do anything on the page i have tried it on?
    Kind Regards
    Ray

  • How To - Validate Multiple Image Upload

    Ok... I have a page where user can insert some informations in a database and also upload related images (without saving to the database).
    This is a free site that I'm developing for humanitary proposes, and I do want him to be good. If people responsable for submiting information of an abandonned dog do not upload an associated image, the site will have no sucess. So, its mandatory to upload some images of the dog.
    Question: How can we validate the multiple upload image SB to be "required" and IF no image is uploaded then, no Insert transaction will be made?
    Thanks

    Hi Marcio,
    >>
    Question: How can we validate the multiple upload image SB to be "required" and IF no image is uploaded then, no Insert transaction will be made?
    >>
    well, there´s a problem with using the Multiple Image Upload *without* saving image names etc to a table :: the Insert or Update transaction that´s required to use this "multi upload" flavor, will be executed *first* and
    (just hope this isn´t plain wrong, but I don´t think so) has no clue of what´s exactly getting triggered afterwards
    This is a sort of "master/slave" chain of actions where the "slave"
    (the upload process) will just do his work after the "master"
    (the Insert transaction) has successfully done something else before -- but not vice versa.
    About the validation as such :: ADDT will always let you validate fields, as long they belong to a certain transaction -- but the "without save to database" image upload procedure is not part of the transaction, that´s why it´s not validatable.
    I would suggest using the "with save to database" multi-upload flavor instead. This variant will be adding an Insert transaction, and the uploaded file names will be part of this transaction and hence are supposed to be validatable. I hope :-)
    Now you might wonder why, because you assumingly don´t need all the file name info that has been stored. That´s right, but if you´d store that stuff in a "dummy" table which has no other purpose than to simply "be there", it might make some sense -- noone will ever force you to query that dummy table, so what ? :-)
    That´s actually all just some "food for thought" for you, as I never tried that myself -- but from knowing ADDT´s "logic", I´m somewhat certain it will work out after all.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Image Upload and Resize Trigger Order Question

    Hello All,
    I do enjoy and like using the ADDT, however I do have a problem with the Image Upload and Resize trigger.
    I understand that this trigger is of the AFTER type, and as such, the insert record I have on the page is implemented first and the data is inserted into the table, then images uploaded provided they are smaller than 200 kB in size.
    However, as I have a field that is unique in the database, if the upload fails I am unable to upload any files which are under the size and put that information into the database, as there is already a record with the unique value.
    Is there an easy way to work around this by trying to capture the error before the data is inserted into the database?
    An idea I have is to: check the unique field with the value to be inserted, if fails, change unique value -> nothing inserted yet, no files uploaded.
    If the unique check passes, insert remaining data and trigger the upload and resize image trigger, once that is complete, have an update of the table to update with the unique value.
    I can see the above working, (I think), but I just have to write the code to implement the idea.
    I am not sure how to use the roll-back triggers either, if the Upload Image trigger fails, to remove the inserted record.  But if I can manage the roll-back trigger to remove the record, that is an option to consider for what I want to achieve.
    Thanks to any help people can provide.
    Cheers,
    Ian.

    Thank you for your reply.
    I have a work-around, I have split the forms over two pages, rather than put everything on one page - which introduced another issue, to which I have made a work-around of sorts too.
    The two forms, on different pages, is probably a better idea in terms of better management of data input. The work-around was a Header redirect based on a form variable, as, if I used a Custom Trigger to dynamically generate a new URL, it generated an escaped-encoded URL - to which I have not figured out how to fix.
    So, in the meantime, it works, so I will settle for that at the moment.
    Again, thanks for you reply.
    Ian.

  • Can you move a 'Multiple Image Upload' button  into the 'Update Form'?

    I am able to creat and an Update form and an image upload using the "Update Form Wizard" tool and the "Multiple Image Upload" tool succesfully.
    <br />
    <br />The problem comes when I try to move the "UPLOAD" button inside the Update form. Right now it looks like this:
    <br />http://www.webritesolutions.com/Test/upload/now.JPG
    <br />
    <br />This is how I would like it to show:
    <br />http://www.webritesolutions.com/Test/upload/tryingto.JPG
    <br />
    <br />I want to "Upload" button to go next to the "Update record" button. When I do this I get a javascript error and the "Update record" button is disabled.
    <br />Here is the code of what I tried to do:
    <br />
    <br />
    <br />
    <br />
    <br />
    <table>
    <tr class="KT_buttons">
    <td>
    <?php<br />        // Multiple Upload Helper<br /> echo $muploadHelper->Execute();<br /> ?>
    </td>
    <td colspan="1">
    <input type="submit" name="KT_Update1" id="KT_Update1" value="Update record" />
    <br /></td>
    </tr>
    </table>
    <br />
    <br />Here is the Javascript error:
    <br />http://www.webritesolutions.com/Test/upload/error.JPG
    <br />
    <br />thanks for your help.

    A control can only appear once in the visual tree. So you have to remove it from the Grid before you can add it to the DockPanel.
    This code will move the Border element from the Grid to the DockPanel when you click the button:
    Private Sub Button_Click(sender As Object, e As RoutedEventArgs)
    Dim border = CType(LayoutRoot.FindName("myborder"), Border)
    LayoutRoot.Children.Remove(border)
    contain.Children.Add(border)
    End Sub
    <StackPanel>
    <Grid x:Name="LayoutRoot">
    <Border x:Name="myborder" BorderBrush="Black" BorderThickness="2">
    <TextBlock>...</TextBlock>
    </Border>
    </Grid>
    <DockPanel x:Name="contain" Background="Yellow">
    <TextBlock>2</TextBlock>
    </DockPanel>
    <Button Click="Button_Click" Content="Move"/>
    </StackPanel>
    You can try it for yourself. But please post your code as formatted text and not as embedded images if you want anyone to be able to reproduce your issue and help you in the future.
    Please remember to close your threads by marking helpful posts as answer.

  • Multiple Image upload with save to database

    Hi everyone,
    I wonder whether anyone can help me, I have been trying to use the multiple image upload with save to database wizard. When I create the page and upload it and then view it in Safari the only thing that is on the page is an upload button. When I press the upload button I am able to browse my files and select them. When this window closes a flash loading value is shown but no images have been uploaded.
    Am I missing anything? I have had no problems uploading single files and creating albums. I want to create an online gallery so that I can do a multiple upload to a specific album if this is possible.
    Cheers
    Sarah

    Hi Sarah,
    >>
    but only the filename appeared in the database and no other information was stored.
    >>
    that´s how it´s been designed also in the "single upload" -- the path_to_the_folder where the files sit in have to be determined elsewhere
    >>
    {wedimg_idalb}
    >>
    I don´t see any reference to this "dynamic data" placeholder in any of your table columns you posted -- where does this one come from ?
    >>
    1. I have multiple clients and each client has their own set of images.
    2. Each set of client images must be linked to an album via the album ID
    >>
    do you have any "foreign key" which is related to the user_table´s ID in order to make user ID 2 upload his images in album ID 2 ? How will the upload page "know" where the images are going to be uploaded to ?
    >>
    and the album page, wedding_alb
    >>
    to my mind *this* table would itself need a foreign key to the user_table in order to "map" record 2 to user ID 2 -- or do I miss something ?
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Database Image Upload

    I have been trying to figure out how i can upload an image to
    a specific folder and also have that same upload linked with an
    insert statement into my sql database.
    An example would be i want to add a user to my database and
    the insert record would have all the contact details for the person
    and also they upload an image of themselves for security reasons.
    so i want the insert resord to add the image name and
    extension to the database record along with their details and have
    the image uploaded to a specific location.
    I think this is possible ive just been frying my brain for
    the past couple of days and cant figure it out, so any help would
    be greatly appreciated.
    Thanks

    hi Dixiegal thanks for your reply
    what i have done so far is that i can allow the user to
    upload an image to the correct location, so that on my first page i
    have the file field where the user can select the file from their
    hard drive and then click on upload.
    once the click upload they are sent to another page called
    uploaded_file.cfm and on that page i have simply got the cffile tag
    and a textbox (displays the filename that was uploaded)
    what i want it to do is once they click upload on the first
    page that the image name is updated in the record on the database
    and then the user is re-directed to another page automatically.
    i have added the code i have at the minute on the second page
    below
    <cfparam name="URL.ID" default="1">
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_UpdateRecord") AND
    FORM.MM_UpdateRecord EQ "form1">
    <cfquery datasource="my_datasource">
    UPDATE dbo.mytable
    SET main_image=
    <cfif IsDefined("FORM.main_image") AND #FORM.main_image#
    NEQ "">
    <cfqueryparam value="#FORM.main_image#"
    cfsqltype="cf_sql_clob" maxlength="50">
    <cfelse>
    </cfif>
    WHERE ID=
    <cfqueryparam value="#FORM.ID#"
    cfsqltype="cf_sql_numeric">
    </cfquery>
    <cflocation url="product_detail_edit.cfm?ID=#URL.ID#">
    </cfif>
    <cfquery name="rs_image" datasource="my_datasource">
    SELECT ID, *
    FROM dbo.table
    WHERE ID =
    <cfqueryparam value="#URL.ID#"
    cfsqltype="cf_sql_numeric">
    </cfquery>
    <cffile action="upload"
    destination="..\images\products\"
    nameConflict="overwrite"
    fileField="Form.FiletoUpload">
    <cfoutput></cfoutput></p>
    <form method="post" name="form1"
    action="uploaded_file.cfm">
    <table align="center">
    <tr valign="baseline">
    <td nowrap align="right">ID:</td>
    <td><cfoutput>#rs_image.ID#</cfoutput></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right">Main_image:</td>
    <td><input type="text" name="main_image"
    value="<cfoutput>#cffile.ClientFileName#.#cffile.ClientFileExt#</cfoutput>"
    size="32"></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right"> </td>
    <td><input type="submit" value="Update
    record"></td>
    </tr>
    </table>
    <input type="hidden" name="ID"
    value="<cfoutput>#rs_image.ID#</cfoutput>">
    <input type="hidden" name="MM_UpdateRecord"
    value="form1">
    </form>
    again your help would be greatly appreciated
    thanks

  • Image upload tools

    I was wondering if anyone can steer me in the right direction
    please, if dreamweaver cs4 can generate the code neccessary to
    create image uploads for admin pages.
    I have been using the Data Objects - Insert and Update Record
    Insertion Form Wizzard with php and mysql and wondered if there was
    a way of adding a button to these forms with relivent code to
    insert a set of images from my desktop to my rootfolder without
    having to hand code it.
    Thanks

    Hi Henry,
    so do you currently have a column named "order" ? If so, you´ll need to rename it to "order_ord" or something.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

Maybe you are looking for