close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File uploads, but won't display on host server

Thread began 10/15/2009 12:56 pm by jstoler155201 | Last modified 10/16/2009 12:22 pm by Jason Byrnes | 1724 views | 3 replies |

jstoler155201

File uploads, but won't display on host server

First of all, this is in reference to the upload section of Power Store. But it applies to DFP.

I can upload and resize files to my test server and the host server, BUT, they only show up on the test server. When I go into the host server by ftp and check the Upload file, there are my images, but somehow they are set to a permission of only 600, they need to be 644 to display. I have the Images and Uploads folders at 755 and used 775, but the images always went to 600.

Is this DFP? My host claims it is not the server.

What can I do? And how do I update DFP, and the other extensions used in PowerStore? Several extensions, including DFP have issued new dot releases since I purchased PowerStore.

Thanks for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

To change the permissions after the files have been uploaded, you can use the chmod() php command.

On the products insert page, change:

php:
<?php

WA_DFP_SetupUploadStatusStruct
("WA_UploadResult1");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult1""ProductImage""2""[NewFileName]_[Increment]""true"$WA_UploadResult1_Params);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct
("WA_UploadResult2");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult2""ProductThumb""2""[NewFileName]_[Increment]""true"$WA_UploadResult2_Params);
}
?>






To:

php:
<?php

WA_DFP_SetupUploadStatusStruct
("WA_UploadResult1");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult1""ProductImage""2""[NewFileName]_[Increment]""true"$WA_UploadResult1_Params);
    
chmod($WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]."".$WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"], 0644);
}
?>
<?php
WA_DFP_SetupUploadStatusStruct
("WA_UploadResult2");
if(
$_SERVER["REQUEST_METHOD"] == "POST"){
    
WA_DFP_UploadFiles("WA_UploadResult2""ProductThumb""2""[NewFileName]_[Increment]""true"$WA_UploadResult2_Params);
    
chmod($WA_DFP_UploadStatus["WA_UploadResult2"]["serverDirectory"]."".$WA_DFP_UploadStatus["WA_UploadResult2"]["serverFileName"], 0644);
}
?>






unless you are experiencing specific bugs in power store, you should not need to update power store using the extensions.

There are some problems that we have identified in PowerStore that can be addressed using the files provided in the Known Issues section of the PowerStore download page.

Sign in to reply to this post

jstoler155201

Thanks, that worked, what about updates?

Jason, thanks as always for the right answer. I also got the PowerStore know issues. Do I use the same code for updates, too?

Thanks,
Jay

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Yup, the update page will use the same edit.

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