Inserting flash files

View: New views
9 Messages — Rating Filter:   Alert me  

Inserting flash files

by McVicar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have changed our config file to allow Insert Object to appear in the menu, this allows the user to upload a Macromedia Flash file. However when this is done the image does not appear. Looking at the html generated it just shows the url of the flash file as coming from the local folder that it was uploaded from, eg c:\documents and settings\etc etc etc - it doesn't look like the upload of the image goes onto the server. I tried playing about with a couple of normal images too - I uploaded 2 local images and they both worked, although in the html 1 was referred to as from the C:\ drive whilst the other had the correct path on the server that the image was uploaded to. As far as I can tell from the config file, we are not using either HTTP Post or Webdav to upload to the server!

I'm a little confused as to when local images are uploaded to the server, and also why flash just does not appear to work - in the help guide for flash it shows an option that allows you to browse the server for source, not sure how you get this option either as it doesn't show for us.

Any advice will be greatly appreciated.

Re: Inserting flash files

by Dylan Just :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

To enable local flash files to be uploaded, you need to enable a setting in your config. In the "httpUpload" tag, set "allowObjectUpload" to "true". See this URL in our manual for more details:
http://www.ephox.com/developers/editliveforjava/v60/index.asp?pageURL=RefHTML/httpupload.htm

Flash files will not render in EditLive like they would in a browser - it just displays a placeholder "object" icon. We had request once to read information from the flash file and display a "preview" of the flash object in EditLive, but I don't think this feature will be added anytime in the near future. It may be possible to create using an Advanced API plugin with a "custom view", but I imagine this would be quite difficult.

Kind regards,

Dylan Just
Software Engineer
Global: +1 (650) 292 9659 x705  Australia: +61 (7) 3858 0100
www.ephox.com


-----Original Message-----
From: liveworks-bounces@... [mailto:liveworks-bounces@...] On Behalf Of McVicar
Sent: Wednesday, 14 May 2008 1:11 AM
To: liveworks@...
Subject: [Liveworks] Inserting flash files


I have changed our config file to allow Insert Object to appear in the menu,
this allows the user to upload a Macromedia Flash file. However when this is
done the image does not appear. Looking at the html generated it just shows
the url of the flash file as coming from the local folder that it was
uploaded from, eg c:\documents and settings\etc etc etc - it doesn't look
like the upload of the image goes onto the server. I tried playing about
with a couple of normal images too - I uploaded 2 local images and they both
worked, although in the html 1 was referred to as from the C:\ drive whilst
the other had the correct path on the server that the image was uploaded to.
As far as I can tell from the config file, we are not using either HTTP Post
or Webdav to upload to the server!

I'm a little confused as to when local images are uploaded to the server,
and also why flash just does not appear to work - in the help guide for
flash it shows an option that allows you to browse the server for source,
not sure how you get this option either as it doesn't show for us.

Any advice will be greatly appreciated.
--
View this message in context: http://www.nabble.com/Inserting-flash-files-tp17210441p17210441.html
Sent from the LiveWorks! mailing list archive at Nabble.com.

_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/
_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/

Re: Inserting flash files

by Dylan Just :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Also note: images and objects are not uploaded when they are inserted. Normally, they are uploaded when the form containining EditLive is posted (there are a few other scenarios). This is described in more detail at:
http://www.ephox.com/developers/editliveforjava/v60/index.asp?pageURL=DeveloperHTML/http_upload_support_for_images.htm 



-----Original Message-----
From: liveworks-bounces@... [mailto:liveworks-bounces@...] On Behalf Of Dylan Just
Sent: Thursday, 15 May 2008 8:18 AM
To: LiveWorks Discussion
Subject: Re: [Liveworks] Inserting flash files

Hi,

To enable local flash files to be uploaded, you need to enable a setting in your config. In the "httpUpload" tag, set "allowObjectUpload" to "true". See this URL in our manual for more details:
http://www.ephox.com/developers/editliveforjava/v60/index.asp?pageURL=RefHTML/httpupload.htm

Flash files will not render in EditLive like they would in a browser - it just displays a placeholder "object" icon. We had request once to read information from the flash file and display a "preview" of the flash object in EditLive, but I don't think this feature will be added anytime in the near future. It may be possible to create using an Advanced API plugin with a "custom view", but I imagine this would be quite difficult.

Kind regards,

Dylan Just
Software Engineer
Global: +1 (650) 292 9659 x705  Australia: +61 (7) 3858 0100
www.ephox.com


-----Original Message-----
From: liveworks-bounces@... [mailto:liveworks-bounces@...] On Behalf Of McVicar
Sent: Wednesday, 14 May 2008 1:11 AM
To: liveworks@...
Subject: [Liveworks] Inserting flash files


I have changed our config file to allow Insert Object to appear in the menu,
this allows the user to upload a Macromedia Flash file. However when this is
done the image does not appear. Looking at the html generated it just shows
the url of the flash file as coming from the local folder that it was
uploaded from, eg c:\documents and settings\etc etc etc - it doesn't look
like the upload of the image goes onto the server. I tried playing about
with a couple of normal images too - I uploaded 2 local images and they both
worked, although in the html 1 was referred to as from the C:\ drive whilst
the other had the correct path on the server that the image was uploaded to.
As far as I can tell from the config file, we are not using either HTTP Post
or Webdav to upload to the server!

I'm a little confused as to when local images are uploaded to the server,
and also why flash just does not appear to work - in the help guide for
flash it shows an option that allows you to browse the server for source,
not sure how you get this option either as it doesn't show for us.

Any advice will be greatly appreciated.
--
View this message in context: http://www.nabble.com/Inserting-flash-files-tp17210441p17210441.html
Sent from the LiveWorks! mailing list archive at Nabble.com.

_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/
_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/
_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/

Re: Inserting flash files

by McVicar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your advice Dylan. However in our config file the httpUpload tags are commented out! So I just do not understand how it is working for images? Surely images and flash files will use the same upload mechanism?

Re: Inserting flash files

by Dylan Just :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you using the main version of EditLive, or are you using one of our
integrations, like EditLive for ILWCM?

-----Original Message-----
From: liveworks-bounces@...
[mailto:liveworks-bounces@...] On Behalf Of McVicar
Sent: Thursday, 15 May 2008 6:45 PM
To: liveworks@...
Subject: Re: [Liveworks] Inserting flash files


Thanks for your advice Dylan. However in our config file the httpUpload
tags
are commented out! So I just do not understand how it is working for
images?
Surely images and flash files will use the same upload mechanism?
--
View this message in context:
http://www.nabble.com/Inserting-flash-files-tp17210441p17248347.html
Sent from the LiveWorks! mailing list archive at Nabble.com.

_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/
_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/

Re: Inserting flash files

by McVicar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, yes we are actually using the Integrated version of Editlive for ILWCM.

Re: Inserting flash files

by Adrian Sutton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/05/2008 10:28, "McVicar" <tony.stoyle@...> wrote:
> Hi, yes we are actually using the Integrated version of Editlive for ILWCM.

Hi Tony,
The image uploads are actually handled by ILWCM rather than EditLive! which
is why you don't have anything configured in httpUpload. Unfortunately,
ILWCM doesn't automatically upload local files referenced in object tags
though.

Since it's all built in to ILWCM, there isn't even an upload URL you can add
to your configuration to make it work unfortunately. As far as I know this
is the key reason we don't include the insert object command in our default
configuration for the ILWCM integration.

Regards,

Adrian Sutton.
______________________
Adrian Sutton, CTO
US: +1 (650) 292 9659 x717 UK: +44 (20) 8123 0617 x717
Ephox <http://www.ephox.com/>
Ephox Blogs <http://planet.ephox.com/>, Personal Blog
<http://www.symphonious.net/>

_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/

Re: Inserting flash files

by McVicar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Adrian,

Many thanks for your reply. Silly question then - what options do I have open to me to allow local flash files (objects) to be uploaded via Ephox? Are you saying that it just can't be done?

Thanks again,
Tony

Re: Inserting flash files

by Adrian Sutton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 16/05/2008 10:57, "McVicar" <tony.stoyle@...> wrote:
> Many thanks for your reply. Silly question then - what options do I have
> open to me to allow local flash files (objects) to be uploaded via Ephox?
> Are you saying that it just can't be done?

Pretty much it can't be done. Your only option is to create a custom servlet
that could accept a file upload and store it in the WCM repository (or
anywhere else web accessible, but I'm pretty sure you'd want it in the
repository so it works with syndication etc). It is doable but only if you
have experience writing servlets that work with WCM and not a lot of people
do (sadly, servlets are more complicated than portlets that work with WCM).

Regards,

Adrian Sutton.
______________________
Adrian Sutton, CTO
US: +1 (650) 292 9659 x717 UK: +44 (20) 8123 0617 x717
Ephox <http://www.ephox.com/>
Ephox Blogs <http://planet.ephox.com/>, Personal Blog
<http://www.symphonious.net/>

_______________________________________________
LiveWorks mailing list
LiveWorks@...
http://liveworks.ephox.com/mailing-list/
LightInTheBox - Buy quality products at wholesale price