close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UE 4 Image Upload Problem

Thread began 4/02/2010 3:30 pm by dlovas275157 | Last modified 4/16/2010 5:03 pm by Jimmy Wu | 1105 views | 9 replies |

dlovas275157

UE 4 Image Upload Problem

I have upgraded to UE 4 and I am using it for file uploads instead of Digital File Pro.

I have added a file upload server behavior to a file field, but it will not upload the file to my server or record it's filename to my database column.

Not sure what I am doing wrong. I have not had issues in the past.

Attached is my page code. File permissions are set correctly, so I know that is not it.

Thanks for any help

D.

Attached Files
ws_inventory_Insert.php.zip
Sign in to reply to this post

Jimmy Wu

So the image isn't uploaded to the imagesDB directory which is two directories above the one that the ws_inventory_insert.php page is at? Try outputting the debug info to see if there are any errors when you are uploading.

The inserting into your database isn't done automatically, it is accomplished by getting the values returned by the upload server behavior and inserting using DataAssist.

Sign in to reply to this post

dlovas275157

Jimmy,

Yes. That is correct. The directory is two folders back from the page and permissions have been set to allow upload, and my server has never given my permissions issues so I do not think it is that.

I have used the debug feature, and the insert page (with the file upload sb) outputs the following onload.

img01 debug info
Status object: WA_UploadResult1
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1

Does this mean certain values aren't getting to the upload server behavior?

Steps I took to get where I am now:

1. Generated Insert.php form with DataAssist Wizard.
2. Ran form through CSS Form Builder.
3. Re-binded Insert Record SB to new form elements created by CSSFB
4. Deleted textfield and added file field in its placed (named/id'd the same).
5. Added File Manipulation > Upload SB (see two screenshots attached).
6. rebinded insert sb to Upload FIles img01 > Server FIle Name

These steps worked for me using DIgital File Pro. What am I missing?.

Thanks for your help Jimmy.

Sign in to reply to this post

Jimmy Wu

Those steps look fine from what you've attached.

The debug information you posted looks like the debug information before the upload is performed. Try putting the debug information on the page that the form posts to and try an upload.

Sign in to reply to this post

dlovas275157

Jimmy,

My insert.php form posts to my results.phgp page. As you stated, I have copy/pasted the error code and required includes to my results.php page (as they are not available in the server behaviors panel on my results page.

Once I copy/paste them into the results.php page, this is the output:

Status object: WA_UploadResult1
statusCode : -1
errorMessage :
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed :
fileSize : -1
isImage :
imageWidth : -1
imageHeight : -1
WA_UploadResult1_1:
clientFileName :
fileExtension :
serverFileName :
serverSimpleFileName :
serverDirectory :
contentType :
fileSize : -1
imageWidth : -1
imageHeight : -1

I never had these issues with DFP (previous version). Is this a bug on UE4? What should I do next to resolve?

Thnx again for your assistance. D.

--
Mac OS X
DW 3
UE 4

Sign in to reply to this post

dlovas275157

Jimmy,

Have you had any time to look closer at my code? Is it possible to open a ticket as my deadline is approaching?

Is this a bug with the UE4?

Thanks.

Sign in to reply to this post

dlovas275157

I added "enctype="multipart/form-data" to my opening form tag as another thread mentioned, but still no luck.

Sign in to reply to this post

Jimmy Wu

I've taken a look at the file, but I haven't been able to determine why your page isn't uploading files. I apply the upload without any issues on my end. I will open up a backend ticket so I can request some additional information to help debug the issue.

Sign in to reply to this post

Jared

Has The UE4 Upload Image Been Solved

I am having the exact same problem. Has this issue been resolved?

Sign in to reply to this post

Jimmy Wu

I just checked the ticket and the user created the form and insert behavior again and was able to get the upload working. They said they included the primary key in the second insert behavior, but had left it out in the first one.

Sign in to reply to this post
loading

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...