Jump to content


Photo

issue inserting images from other pages


  • Please log in to reply
16 replies to this topic

#1 Marty Walker

Marty Walker

    Sr. Member

  • Members
  • PipPipPipPip
  • 335 posts
  • 155

  • LocationKatoomba, AU

Posted 25 August 2011 - 02:54 AM

Hi,

I'm having an issue inserting images from other pages. I'm inserting into a wysiwyg field from another page that has an image field populated. I can navigate and see the image but when I insert it it disappears.

Not sure if this an expected behaviour or a bug.

Regards
Martin

#2 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 25 August 2011 - 08:56 AM

That's not the intended behavior. Some of my code is still adjusting to jQuery 1.6. :) Thanks for finding it. Fixed in the latest commit.

#3 Marty Walker

Marty Walker

    Sr. Member

  • Members
  • PipPipPipPip
  • 335 posts
  • 155

  • LocationKatoomba, AU

Posted 25 August 2011 - 11:00 PM

Thanks Ryan,

I downloaded the most recent build and I'm still getting this behaviour. If I view the html in the editor I see:

<img src="undefined" width="209" height="234" />

I'm running Safari 5.0.5 / OS X 10.6.7

Regards
Martin

#4 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 26 August 2011 - 08:11 AM

Martin, I think Safari may not have not loaded the new JS. You might have to clear your cache and/or hit reload on the page once or twice. Sometimes Safari can be a little tricky with cache. Also, I'm assuming we're talking about PW 2.1 (not PW 2.0), but let me know if I'm incorrect.

#5 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 04 March 2012 - 05:03 PM

Hi,

I have the same problem with Safari 5.1.2 and OS X 1.6.8. The size of the image is 0 x 0 and it is not shown in the window:

Näyttökuva 2012-03-05 kohteessa 0.04.53.png

#6 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 06 March 2012 - 10:38 AM

Lpa, I'm assuming you are running the latest PW (2.2.0.1), but let me know if not. I'm running Safari 5.1.2 as well, on 10.6.8. But I can't duplicate this. I'm always suspicious of cache issues with Safari. Is anyone else able to duplicate?

#7 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 08 March 2012 - 04:30 PM

I am actually using 2.2.0. What is the best way to update: "git pull https://github.com/r...rocessWire.git" or something else?

Is the drag and drop of images supposed to work with Safari?

#8 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 09 March 2012 - 09:25 AM

I am actually using 2.2.0. What is the best way to update: "git pull https://github.com/r...rocessWire.git" or something else?


You can do that, or you can download the ZIP and replace the /wire/ directory from your installation with the /wire/ directory from the ZIP. When not using git, I usually rename the existing /wire/ dir in my site to /wire.old/ temporarily, just in case I need to revert.

Is the drag and drop of images supposed to work with Safari?


Yes, everything should work in Safari. Though I would use Chrome over Safari to avoid the continuous beachballing on every site I visit with it (or maybe that's just my computer). :)

#9 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 09 March 2012 - 03:54 PM

Well, now I have updated to 2.2.0.1 and now I can select the picture from another page.

But I still can't drag and drop the pictures with Safari. I don't even see the text "drag and drop files in here" in the image field. What should I try next?

#10 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 855

  • LocationVihti, Finland

Posted 09 March 2012 - 04:09 PM

lpa: does this work in your Safari: http://robertnyman.c...api-upload.html

#11 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 10 March 2012 - 07:43 AM

lpa: does this work in your Safari: http://robertnyman.c...api-upload.html


It works, but doesn't show the picture. As the page says: "NOTE: Safari seems to fail to read out any information about the actual files."

#12 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3124

  • LocationAtlanta, GA

Posted 12 March 2012 - 08:07 AM

Actually this sounds familiar now, I think I remember that Safari for some reason does not support drag-drop file uploads. That was awhile ago that I remember talking about this before, and figured they would have fixed it by now. It seems like Apple is not giving much love to Safari lately.

#13 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,526 posts
  • 855

  • LocationVihti, Finland

Posted 12 March 2012 - 12:43 PM

I just checked what the missing feature is, and it seems that we require filereader API: http://caniuse.com/#feat=filereader (not supported in Safari 5.0, 5.1 and support unknown for 6.0). BTW: IE 10 will have it, and even Opera mobile and Android browser can handle it...

I also noticed that we don't actually check for drag and drop support. This fails in Opera 11, since it supports everything else but not drag & drop. It seems that feature check for that one isn't so simple than with other features, so if Opera 11 is only problem, then we might live with that.

#14 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 12 March 2012 - 12:53 PM

I just checked what the missing feature is, and it seems that we require filereader API: http://caniuse.com/#feat=filereader (not supported in Safari 5.0, 5.1 and support unknown for 6.0). BTW: IE 10 will have it, and even Opera mobile and Android browser can handle it...


I found this: http://www.deadmarsh...0413023355.html which tells me that you might fix the drag and drop to work even with Safari on Mac?

#15 Soma

Soma

    Hero Member

  • Moderators
  • 3,205 posts
  • 1757

  • LocationSH, Switzerland

Posted 12 March 2012 - 01:57 PM

Lpa, I'm assuming you are running the latest PW (2.2.0.1), but let me know if not. I'm running Safari 5.1.2 as well, on 10.6.8. But I can't duplicate this. I'm always suspicious of cache issues with Safari. Is anyone else able to duplicate?


No, it works like a charm here safari 5.1.2 osx 10.6.8. I can see the image select resize and insert it.

@somartist | modules created | support me, flattr my work flattr.com


#16 lpa

lpa

    Jr. Member

  • Members
  • PipPip
  • 21 posts
  • 3

  • LocationHelsinki, Finland

Posted 12 March 2012 - 02:56 PM

No, it works like a charm here safari 5.1.2 osx 10.6.8. I can see the image select resize and insert it.


I can also insert pictures from other pages without problems with the default admin templates. I was using the Futura admin templates when I had problems.

But Soma, can you drag and drop images with Safari? That is another question we have been discussing here.

#17 Soma

Soma

    Hero Member

  • Moderators
  • 3,205 posts
  • 1757

  • LocationSH, Switzerland

Posted 12 March 2012 - 04:05 PM

No Safari can't drag and drop (yet).

@somartist | modules created | support me, flattr my work flattr.com





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users