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 (size) Upload Query

Thread began 5/29/2015 1:45 pm by Paul | Last modified 5/29/2015 7:04 pm by Ray Borduin | 504 views | 3 replies |

PaulBeta Tester

File (size) Upload Query

I've used DB to create a file upload page.

I've set the image to 'Keep existing format'

Heres the snippet:

<
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["nhSendUpload"]) || isset($_POST["nhSendUpload_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "nhImageUpload", "2", "[NewFileName]_[Increment]", "true", $WA_UploadResult1_Params);
}
>

However all the images ive uploaded, have been reduced in file size using this setting.

For example a 400Kb file has been reduced to less than 40Kb after uploading

Surely this would only happen if i had selected the convert option to jpg, quality 80?

Any ideas why this is happening - is this expected behaviour?

Sign in to reply to this post

Ray BorduinWebAssist

The upload settings should be above that code. Can I see those? By default the image shouldn't be resized, so I'm not sure why it appears to be in your case.

Does the image still display when viewed as the smaller size?

Sign in to reply to this post

PaulBeta Tester

Yes, Im getting two images as per the upload config, both are displaying at their prescribed dimensions.
However, for some reason the file sizes are being compressed to about 20% of their original upload size!

Sign in to reply to this post

Ray BorduinWebAssist

Please upload a copy of the .php page so I can take a look. Don't save it in another format, you can upload the .php page directly.

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