Uploading .sh

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Uploading .sh

Lee Hart
Hi,

Just wondered if anyone has any problem uploading files with a .sh file extension (works fine with other files). It's causing a "resource-error" error type for me. I'm using a standard xforms:upload control, e.g.

<xforms:upload ref="instance('ins-upload')/media">
<xforms:label>File: </xforms:label>
<xforms:filename ref="@filename"/>
<xforms:mediatype ref="@mediatype"/>
<xxforms:size ref="@size"/>
<xforms:alert>Please select a file.</xforms:alert>
</xforms:upload>

...with something like...

<xforms:submission
id="sub-post-upload"
method="form-data-post"
resource="{instance('ins-entry')/atom:link[@rel='x']/@href}"
ref="instance('ins-upload')"
replace="none">
<xforms:header>
<xforms:name>Accept</xforms:name>
<xforms:value>application/atom+xml</xforms:value>
</xforms:header>

<xforms:insert ev:event="xforms-submit-done" nodeset="instance('ins-upload')" origin="instance('ins-upload-empty')"/>
<xforms:send ev:event="xforms-submit-done" submission="sub-do-the-next-thing"/>
<xforms:message ev:event="xforms-submit-error" level="modal">An error occurred (<xforms:output value="event('error-type')"/>) while posting a draft upload.</xforms:message>

</xforms:submission>


I guess it might be something specific on the server, rather than a limitation in Orbeon or eXist, etc.

Cheers,
Lee


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Uploading .sh

Rodney Wild

If my memory serves me correct .sh is a shell extension used for shell batch files.  There might be some sort of protection on your server preventing those types of files from being uploaded.

 

Rod

 

From: Lee Hart [mailto:[hidden email]]
Sent: September 2, 2010 3:36 AM
To: [hidden email]
Subject: [ops-users] Uploading .sh

 

Hi,

 

Just wondered if anyone has any problem uploading files with a .sh file extension (works fine with other files). It's causing a "resource-error" error type for me. I'm using a standard xforms:upload control, e.g.

 

<xforms:upload ref="instance('ins-upload')/media">

            <xforms:label>File: </xforms:label>

            <xforms:filename ref="@filename"/>

            <xforms:mediatype ref="@mediatype"/>

            <xxforms:size ref="@size"/>

            <xforms:alert>Please select a file.</xforms:alert>

</xforms:upload>

 

...with something like...

 

<xforms:submission

            id="sub-post-upload"

            method="form-data-post"

            resource="{instance('ins-entry')/atom:link[@rel='x']/@href}"

            ref="instance('ins-upload')"

            replace="none">

           

            <xforms:header>

                        <xforms:name>Accept</xforms:name>

                        <xforms:value>application/atom+xml</xforms:value>

            </xforms:header>

 

            <xforms:insert ev:event="xforms-submit-done" nodeset="instance('ins-upload')" origin="instance('ins-upload-empty')"/>

           

            <xforms:send ev:event="xforms-submit-done" submission="sub-do-the-next-thing"/>

           

            <xforms:message ev:event="xforms-submit-error" level="modal">An error occurred (<xforms:output value="event('error-type')"/>) while posting a draft upload.</xforms:message>

 

</xforms:submission>

 

 

I guess it might be something specific on the server, rather than a limitation in Orbeon or eXist, etc.

 

Cheers,

Lee



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws