Image Upload with overwrite renaming

Hi
I wonder whether anyone can help, I have created an image upload page and want to edit the images in the albums I have created. I want to overwrite the image files and not rename them. Is this possible or do I need to create an update page? If so what would be the best way to go about this? I have tried to create an update page but it doesn't seem to work.
Im using PHP/MYSQL
Cheers

Hi Sarah,
ADDT has a "Delete File" behaviour
(under "File Upload") -- as the Image Upload feature doesn´t provide an "overwrite if exists" option, I guess you´ll have to figure out a tailor-made chain of actions first, like...
1. if the "filename" column of your table is not empty
(means, an image has been uploaded)...
2. then apply the "Delete File" behaviour and delete it.
3. afterwards proceed to the "Image Upload" page and upload the image in question once again
Would this approach make any sense ? ;-)
Günter Schenk
Adobe Community Expert, Dreamweaver

Similar Messages

  • Multiple image upload with save to database problem

    I am developing some backend work for a client, and we recently used the Multiple image upload with save to database wizard without a problem. A few days later, we noticed that we could only upload a single file at a time - it seems that the coding is no longer able to access the flash part of this and is using the javasript function instead. I know the web hosting company has made some changes on the server, and I did some reearch and it seems that  there could be an issue with Flash 10, but has anyone else experienced anything like this? Any help is greatly appreciated.
    Thanks.
    Jeremy

    Thank you for the responses. I have already updated awhile ago, so I am wondering what happened. Not sure if during the server update, some files were replaced (unless I totally forgot to update to 1.0.1 on this site). So I reinstalled 1.0.1, deleted the includes folder from the server and uploaded my includes folder and it now works again.
    Again, thanks for the help.
    Jeremy

  • Multiple Image Upload with Save to DB - any help would be appreciated

    Hi - I'm running into the following issue when using the Multiple Image Upload with Save to DB behaviour.
    When I click the link to upload multiple files, I am given the list of local files to choose to upload. No problem here - I can select multiple files.
    When i select choose, the uploader shows the progress but hangs at 0%
    However (if I cancel the uploads), the first image of the group is uploaded and it's corresponding database entry is entered correctly.
    Anyone else have this hangup? If so how did you get around it?
    Thanks!
    Dan

    Just thought I would update.
    The problem seems to be related to redirecting.
    I had specified a redirect page, which of course stops the flash file from continuing to upload images after the first one.
    Anyone know how to change this so when the flash uploader finished it goes back to a list page?
    Thanks again.

  • Multiple image upload with save to database wizard problem

    hi,
    i need to upload multiple images (6) in a table called pictures. i will need the names stored in the database and the files uploaded on the server. since i am new to dreamweaver i can not figure out on how to make this work.
    the multiple image upload wizard uploads the images fine and creates a subfolder with the right id but i have no file names in the database at this point. i tried the multiple image upload with save to database wizard but i only get one upload button. it worked fine with one image but i need 6 pics uploaded. the i tried to first upload the pictures with the multiple image upload wizard and use the update wizard to add the names afterwards but that did not work either. hmm. would be great if someone could help me out.
    thanks, jan

    Thank you for the responses. I have already updated awhile ago, so I am wondering what happened. Not sure if during the server update, some files were replaced (unless I totally forgot to update to 1.0.1 on this site). So I reinstalled 1.0.1, deleted the includes folder from the server and uploaded my includes folder and it now works again.
    Again, thanks for the help.
    Jeremy

  • 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

  • Image upload with save to database

    Quick question guys,
    Can Image upload with save to database be added to an existing form in order to save other info as well as the file name to the database.
    Thanks
    Col F

    Hi,
    Not looking at any code you have an upload button for the video and an insert for the form. So both forms are independent of each other it looks like, thats why when you do one you only get that info and when you do the other you only get the other info. You should just make one form with the uploader included. Make one form with all the fields included (movie name, movie page, movie description, movie file) after the form is completed then select the file field and go to...
    Server Behaivoirs, Developer Toolbox, File upload, upload file. Follow the widgets.

  • 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 File & Image uploads with Developers Toolbox

    I am considering purchasing the Developers Toolbox if it will
    save me some time. The online information isn't very detailed and I
    am curious if it has the capabilities of handling multiple image
    uploads. For instance I'm building a news page where a news article
    will contain more than one image. Is this beyond the scope of the
    Developers Toolbox or am I better just hand coding?

    multiple image upload
    (with optional resizing) and file upload features are
    available in ADDT when using the PHP_MySQL server model -- without
    hand coding.

  • How to display image uploaded with t:inputFileUpload (Tomahawk) ?

    I'm using <t:inputFileUpload> to upload images and i need to show uploaded image after uploading complete.
    How to get url to temp file created on server? Is this possible ?
    <t:inputFileUpload storage="file" id="file1" value="#{uploadBean.uploadedFile}"  required="true" />
    <img src="????"/>
         public String addFile() {
              log.debug("uploadedFile: " + uploadedFile);
              if (uploadedFile != null) {
                   getLog().debug("File type: " + uploadedFile.getContentType());
                   getLog().debug("File name: " + uploadedFile.getName());
                   getLog().debug("File size: " + uploadedFile.getSize() + " bytes");
              return null;
         }

    You will need a server configured to serve files out of a set directory (e.g. Apache HTTPD server). Then copy the file to that directory upon upload.

  • Multiple image upload with save to database wizard

    There 's an error message "This feature is not supported for this server model"
    Please tell me how can i fix this?

    That again would be more of a question for the Cold Fusion group.
    Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
    Those people will be able to help you out more.
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Js-error while executing Multiple Image Upload wizard

    If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
    can someone help?
    thanx
    peter

    That again would be more of a question for the Cold Fusion group.
    Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
    Those people will be able to help you out more.
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Multiple image uploads on a single page

    Hi
    I've created a small cms page where a user can upload images to specific image containers. Unfortunately the multiple image upload with db wizard won't allow more that one occurence per page.
    Any ideas to work around this will be greatly appreciated
    Vito

    Hi Vito,
    kudos for finding this interesting solution, and thanks for sharing !
    i think that this issue is something the developers at Adobe need to look into
    I don´t think they would have to make their mind up about rather special scenarios like this one -- that´s what I´d call "custom development", what you´ll always stumble across sooner or later. No "tool" on earth will ever be able to cover each and every scenario...
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Multiple Image Uploader renaming thumbnails

    I am having a blast with the ADDT! For a php noob such as myself this stuff is great, just what I have been looking for.
    If only I knew how to stop ADDT's multiple image uploader FROM RENAMING THE UPLOADED THUMBNAILS.
    Like this: myImage.jpg is renamed to myImage_135x150.jpg
    I can deal with it stashing the thumbnail in a separate folder, but the name of the uploaded image and the thumbnail must remain the same!
    I did manage to figure out where to change the thumbnails dimensions, but not the name itself...
    Thanks for such a great tool,
    Jason

    Hi Jason,
    ADDT´s default thumbnail renaming rule is defined in the file "includes/tng/triggers/tNG_DynamicThumbnail.class.php" -- at the end there´s a function named "Execute", and in here you´ll find the following:
    a) $thumbnailName = path_info['filename'].'_'.$width.'x'.$height.'_w_'.$hash.(isset($path_info['extension'])? '.'.$path_info['extension']:'');
    this needs to be changed to:
    $thumbnailName = path_info['filename'].$hash.(isset($path_info['extension'])?'.'.$path_info['extension']:' ');
    b) tNG_deleteThumbnails($thumbnailFolder, $path_info['filename'].'_'.$width.'x'.$height, $hash);
    this need to be changed to:
    tNG_deleteThumbnails($thumbnailFolder, $path_info['filename'], $hash);
    As always, please backup the original file before making such changes ;-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Image upload in a file and rename in the DB

    hi,
    I have a form where the user can change or add his avatar, i'd like to know what's the best way to allow image's upload (with a max size) and rename this image, something like ('username'.jpeg). this new image would replace the previous one. only one image per user. and if this user haven't upload image, a 'default.jpeg' would apear on his profile...
    Any good solution or help for this problem??
    Cheers
    Tim

    i didn't understand what you've wrote about the "SB".. is there a preset fonction to upload files on my website in DW ?
    Using Adobe Dreamweaver Developers Toolbox (ADDT - the forum you are posting in) there is a file upload SB (acronym for server behavior) located in Server behavior/Developers Toolbox/File Upload. If you do not have ADDT you do not have this server behavior and you are posting in the wrong forum. Although doubtful you might get a better answer if you don't have ADDT by posting in the Dreamweaver Application Development forum

  • 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

Maybe you are looking for

  • Unable to open Itunes in Vista - data execution prevention (DEP)

    I'm unable to open itunes on my computer. I can install it but not open it. It says that the data execution prevention has stopped the running of the program. I have tried to change the settings of the data execution program, but it will not allow me

  • Why aren't YouTube videos playing on my iPad mini

    I have a 1st gen iPad mini and sometime after updating to ios 8.1.3 (not immediatel) and now I cannot stream any vidoes such as on YouTube and Twitch. However, stored videos on photos still work fine, what can I do?!

  • IPhone 4 Bumper Case Refund!?!?

    So i have already bought a bumper case, and i can get a refund yeh...but rather then the hassle of sending that one back to get a new 1, would apple just give me my money back and then i keep my case...saves alot of hassle...would they do that?

  • Troubleshooting javascript error in OCI catalog

    Hi experts. I have created an OCI catalog for a customer. The customer is using SAP ERP ECC 6.0 EHP4 and IE11 When the customer is launching the OCI catalog the shopping site appears and everything is great, but when the customer is pressing a certai

  • Elements 8 install error

    I'm trying to install Premiere Elements 8 on my computer but when it starts installing and copying files an error pops up that says: Error 1402 could not open key: UNKNOWN\Components\34865792D36728C42B48B728231F7227\1D385E0A7F3223C569021B967D17E5B4.