Multiple Image Upload not working on macs
Hello everybody,
I have searched everywhere for an answer to this issue and I'm not sure if there is a solution yet.
I am hoping someone reads this and tells me if either I need to use another product or post a fix for this to work.
I am developing a website for a photographer who needs to upload the pictures he takes for his clients to review on his website.
So on the backend I have created an application where he logs in and creates a new client and then uploads multiple images to that client's folder.
I am of course developing the site in ADDT version 1.0.1. in Dreamweaver CS4.
Everything works as expected except for the image upload part, where he is unable to upload even a single image.
He is using Mac OS X and Safari 3 to access his site.
I use a PC and can upload images perfectly, but the whole purpose of the website is for him to be able to upload images without me.
I read somewhere that ADDT's Multiple Image upload did not work on Macs because of the way that the OS handles image uploads to the server via HTTP. I also know that Flash v.10 had an issue with this behaviour in the past, but that it's been fixed with ADDT's v. 1.0.1, which is true since as I said I am able to upload images from my PC using that Flash version.
There is a product called MultiPowUpload from Element-IT (http://www.element-it.com/MultiPowUpload.aspx) that seems to do the exact same thing as ADDT's Multiple Image Upload, and I have tested the Demo version both on Mac and PC and works perfectly well.
I really would like my ADDT behaviour to work, first because I already have the whole site developed in it, plus I am used to the software already, and also because Element-IT's product is a bit pricey for a multiple server license (which I would need for other sites I plan to develop for Mac users).
Any thoughts or pointers you might have will be greatly appreciated.
Thank you in advance.
Luis Herrero.
Thanks a lot for your replies and helpful ideas.
It turns out that for some strange reason the problem was with the hosting provider.
I have moved another site which was not working with Macs either to a new provider and everything works now as it should be, without changing any files at all.
I have in fact v.1.0.1 in both those sites (those were the first things I checked before posting here) and Flash Player v. 10 both on the Mac and PC, so it will remain a mystery as to why the server behavior did not work with that particular host on Macs.
Thanks again.
Best regards.
Similar Messages
-
File upload not working on Mac OSX
I've tried several of the Flex file upload components, in all
cases they don't work correctly when used on a Mac. I've tested
both flash player 9 and the latest 10 release. The file uploads to
the server, but the progress bar doesn't update and the upload
complete event never fires. To the end user, it looks like the app
isn't doing anything at all!
Any advice on how to get this working? If you know of any
file upload components that are already tested and working on the
Mac version of flash - that would be a great help as well!
Thanks!If you Google it you will find that this is a known issue, it surprised me since I spent days looking at my code.
I found possible solutions here, but none worked for me it seems that it worked for many other people.
http://www.abdulqabiz.com/blog/archives/2006/06/09/workaround-filereference-oncomplete-is- not-fired-on-mac-os/
Hope Mac and Adobe will have lunch one day and figure it out.
Ben -
I have an image upload script that upload the image, but does not allow the name of the image to be inserted into the database.
Here is the code
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "signup3")) {
$updateSQL = sprintf("UPDATE player SET photo=%s WHERE player_id=%s",
GetSQLValueString($_FILES['ufile']['name'], "text"),
GetSQLValueString($_POST['user'], "int"));
mysql_select_db($database_db, $db);
$Result1 = mysql_query($updateSQL, $db) or die(mysql_error());
$updateGoTo = "team-control.php";
if (isset($_SERVER['QUERY_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $updateGoTo));
//define a maxim size for the uploaded images in Kb
define ("MAX_SIZE","50000");
//This function reads the extension of the file. It is used to determine if the file is an image by checking the extension.
function getExtension($str) {
$i = strrpos($str,".");
if (!$i) { return ""; }
$l = strlen($str) - $i;
$ext = substr($str,$i+1,$l);
return $ext;
//This variable is used as a flag. The value is initialized with 0 (meaning no error found)
//and it will be changed to 1 if an errro occures.
//If the error occures the file will not be uploaded.
$errors=0;
//checks if the form has been submitted
if(isset($_POST['Submit']))
//reads the name of the file the user submitted for uploading
$image=$_FILES['ufile']['name'];
//if it is not empty
if ($image)
//get the original name of the file from the clients machine
$filename = stripslashes($_FILES['ufile']['name']);
//get the extension of the file in a lower case format
$extension = getExtension($filename);
$extension = strtolower($extension);
//if it is not a known extension, we will suppose it is an error and will not upload the file,
//otherwise we will do more tests
if (($extension != "jpg") && ($extension != "jpeg") && ($extension != "png") && ($extension != "gif"))
//print error message
echo '<h1>Unknown extension!</h1>';
$errors=1;
else
//get the size of the image in bytes
//$_FILES['image']['tmp_name'] is the temporary filename of the file
//in which the uploaded file was stored on the server
$size=filesize($_FILES['ufile']['tmp_name']);
//compare the size with the maxim size we defined and print error if bigger
if ($size > MAX_SIZE*1024)
echo '<h1>You have exceeded the size limit!</h1>';
$errors=1;
//we will give an unique name, for example the time in unix time format
//$image_name=time().'.'.$extension;
//the new name will be containing the full path where will be stored (images folder)
$newname=$image;
//we verify if the image has been uploaded, and print error instead
$copied = copy($_FILES['ufile']['tmp_name'], $newname);
if (!$copied)
echo '<h1>Copy unsuccessfull!</h1>';
$errors=1;
//If no errors registred, print the success message
if(isset($_POST['Submit']) && !$errors)
echo "<h1>File Uploaded Successfully!</h1>";
I dont know why its not working...I've used this same script in the same way in another website and it works fine.Check with your host for permission settings. If it works locally, and on other servers, then the code works, it just may not work in the particular
environment your host has set up.
Lawrence Carmer - *Adobe Community Professional*
http://www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in PHP and ColdFusion
Stay updated - http://blog.cartweaver.com -
Multiple file upload not working in IE10 and IE11
Hi,
As per the UI5 documentation( https://sapui5.hana.ondemand.com/sdk/#test-resources/sap/ui/commons/demokit/FileUploader.html) , UI5 supports multiple file uploading for IE10 and IE11. I set the "multiple: true" flag in the fileuploader example page and the file browser dialog is not allowing to select multiple files. Does UI5 provide multi file upload support for IE10 and IE11 or am i missing anything ?
regards
RajaHuh?
Your problem makes no sense. The filename is included with the upload so that the server knows what the file was originally called. Are you running the JSP locally and reading the file directly off the hard drive??
I note also that you aren't using a multipart form, which is required to upload a file.
<form action="uploadFile.jsp" method="post" enctype="multipart/form-data">
<input type="file" name="upload" value="<%= fileName %>" />
</form>You'll need to use the Jakarta Commons FileUpload class to correctly process a form encoded with "multipart/form-data" or getParameter("xxx") will return null. You can also use the older com.oreilly.servlet.MultipartForm or whatever it's called. I'm pretty certain that the Jakarta Commons obsoletes all the COS classes.
Brian -
Multiple file upload not working
Hi, I've created a form with file upload. I've selected 'Allow Multiple Files,' but it still only allows single file selection using the Ctrl key. Any suggestions? Thank you.
GNever mind, I now realize you select one file at a time before submitting.
-
"Warn me when closing multiple tabs" does not work on Mac Version 5.0.1
The "question" says it all. Even though this box is checked in FireFox Preferences, it doesn't work on my iMac. The browser closes immediately. There is no pop-up with a question.
You can set the warn prefs on the <b>about:config</b> page to <b>true</b> via the right-click context menu or toggle the value with a double left-click.
* browser.showQuitWarning, see http://blog.zpao.com/post/3174360617/about-that-quit-dialog
* browser.tabs.warnOnClose, see http://kb.mozillazine.org/About%3Aconfig_entries
* browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
* browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
*Use the Filter bar at to top of the about:config page to locate a preference more easily.
*Preferences that have been modified show as bold(user set).
*Preferences can be reset to the default or changed via the right-click context menu. -
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 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 appreciatedHi 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 Wizard Not Creating A Form
I'm working on a new site and I keep running the multiple image upload wizard.
It connects to the database fine, gets the primary key and all that. It sees the two columns that should be included in the form field in addition to the image_url field.
When I hit finish on the wizard all the proper code seems to be created except the form. The upload button is the only user interface element created.
Anybody got ideas on what is causing this? I've used this wizard on other projects sucessfuly, but I can't figure out what I'm doing differently here.
thanks,
- TannerI believe you have to create the form first with some File Upload fields then run the Wizard.
Cheryl -
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
RayHi 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 -
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.
JeremyThank 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 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, janThank 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 -
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?
ThanksHi 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 -
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. -
Image capture not working in lion
Well! After 10 years or so of OS X my Kodak DC 5000 no longer works in image capture after upgrading to OS X Lion. After connecting the camera and trying to import images, Image Capture says "no device connected".
Went to the loca shop and using the same camera and cable, successfully imported picts to the desktop under Snow lepard, so I know it's not the camera or cable. Been a mac user for decades! never had a problem with "plug and play" until this update!
Do I need to get a card reader now? New camera? Not happening as long as this one works(ed). Already lost Photoshop, but didn't mind as I bought Pixelmator. However, the Image Capture not working is a showstopper. Is this Apple's version of Vista? Help please!Yes, I have iPhoto 9.1.5, I also used the prefs and this still is not working. The upgrade to OS X Lion broke my driver and I am not able to do transfer any pics from the camera.
I assume I will now need to buy a card reader.
Maybe you are looking for
-
Windows 8.1 pro and itunes 12.1.1.4 not compatible???
After a weekend of frustration downloading, uninstall, internet tips i cannot get iTunes 12.1.1.4 to open on my windows PC running 8.1 pro. There must be a fix but I can't find it. Many others are Experiencing the same issue.
-
HT204053 Is it possible to merge two Apple ID's?
I have an apple ID for iTunes music and purchases and another for iCloud. It's a long story. I would now like to have a single account but don't want to lose all my apps and music and stuff on my iTunes
-
My app store is running in German how do I switch it back to English?
My app store is running in German how do I switch it back to English?
-
UPDATE: Audio dropping out in places after publishing MP4 in Captivate 7
UPDATED: Bumping this up thread, in the hopes someone will see it and reply. No one has any suggestions? I'm really struggling with this and getting super frustrated. Anyone from Adobe reading this? Thoughts? Thanks in advance for any help that can b
-
Share via email & twitter not working on iOS7
When I try to share via email in Safari the email never sends. I enter an email address that I know works, and it looks like it's sending but it never ends up in my mailbox. I've shared via email successfully from other apps (like Pocket) and I've ch