close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UE 401 statusCode error messages

Thread began 9/08/2012 7:19 am by Paul | Last modified 9/11/2012 2:06 pm by Jason Byrnes | 1034 views | 3 replies |

PaulBeta Tester

UE 401 statusCode error messages

I've been attempting to customise the file upload statusCode, one of which is below;

<?php if ($WA_DFP_UploadStatus["WA_UploadResult1"]["statusCode"]==1) { ?>Upload was successfull<?php }?>

I have followed the user guide for Digital File Pro.

when i apply this to my page and try to upload a file that conflicts with my upload rule, as a test, none of the statusCode messages reports any errors.

I should be seeing file size, width and height conflicts at least.

Is there a more recent guide for UE 4.0.1 that i should be following?

Thanks, Paul.

Sign in to reply to this post

Jason ByrnesWebAssist

to help debug, go to the bindings panel, and expand the WA Uplaoded Files Global Status and add the Debug info binding to the page.

Post back a copy of the page please and the debug info results

Sign in to reply to this post

PaulBeta Tester

I added the debug binding to my page and tested again trying to upload an image which would conflict with upload rules, however it is not reporting back anything other than "no file uploaded".

Status object: WA_UploadResult1
statusCode : 0
errorMessage : No file uploaded
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_2:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1
statusCode : 0
errorMessage : No file uploaded

My zipped page is attached.

Thanks,

Attached Files
upload.zip
Sign in to reply to this post

Jason ByrnesWebAssist

that would mean that the server never received the file.

most likely due to a server setting for post max time or max file size, or another one of the settings that effect uploaded file size.

In order to be able to report that the file does not meet the size restrictions that you set, the server must be able to receive to receive the file, only once the temp file is sent to the server can the server know it's size and reject it or save it based on your settings.

if the server cant accept the uploaded file due to server level restrictions, there is know way for the php processor to implement the restrictions you are setting.

Sign in to reply to this post

PaulBeta Tester

Ok, so ive set the upload image file limits to
width="620" height="380" in UE4 upload wizard

If i upload an image file with dims width="1024" height="768"
and the file size was under my max limit, what errormessage can i expect to see?

Sign in to reply to this post

Jason ByrnesWebAssist

  Ok, so ive set the upload image file limits to
width="620" height="380" in UE4 upload wizard  




the upload behavior does not have a way of setting file size limits. The setting you are referring to is the resize setting.

Once uploaded, the file will be resized by the server to the 620x380 size you specify.

the problem is that the upload is not completing. The upload status is 0. When the status is 0, none of the other variables will be set because there was no file uploaded for them to get values from.


try turning on error reporting, it may be that a php error is occurring:

php:
<?php
error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



one issue i see on your p[age is that you have named both the form and the file tag "PropPic". you should always use unique names.

another thing to try that may help us determine the problem is to add a var_dump of the files collection:

php:
<?php
echo("<pre>");
var_dump($_FILES);
echo(
"</pre>");
?>



this may tell us what is going wrong.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...