close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Uploading image copyright info is removed

Thread began 4/15/2017 9:12 am by Sweens | Last modified 4/18/2017 1:01 pm by Ray Borduin | 3355 views | 12 replies |

Sweens

Uploading image copyright info is removed

Hi

I'm trying to develop a photography site and have noticed that copyright (and other) metadata is removed from the jpg image when it's uploaded.

I'm not looking to store this information anywhere else, but thought it was embedded in the image itself, so that if someone downloads it from the site, it will still be there.

Is there a way of keeping this information?

Many thanks
Chris

Sign in to reply to this post

Sweens

I've discovered why - it's because the image is resized, effectively creating as new image. I've removed the resize and the copyright info is retained. Just need to work out how to limit the size of the upload instead (could this be added to a future version, please?)

Cheers
Chris

Sign in to reply to this post

Sweens

OK. I've applied the server validations for file type and file size - but the image upload now fails completely.

If I remove the validations, the upload works fine.

Tried this on 2 different pages that use the uploader, same problem with each.

Hope you can help.
Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

You have the validation code before the upload code. It can't check the file size or extension through the webassist bindings before it is uploaded.

You could try using the $_FILES array directly. The size should be: <?php echo($_FILES['PgMainPic']['size']); ?>

And then you can probably use: <?php echo($_FILES['PgMainPic']['type']); ?>
it should have the value: image/jpeg

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

Thanks - all I've done is use the extension, with the 'file size' option.

I've moved the code block after the upload and this hasn't made any difference - except that the (suitably sized) image IS uploaded, but not added to the database PLUS the validation failure message is displayed!

Cheers
Chris

Sign in to reply to this post

Ray BorduinWebAssist

If you can give me FTP access and a URL to reproduce I'll look into the problem and get it fixed.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

pm

Sign in to reply to this post

Ray BorduinWebAssist

When using the "File Extension" validation you have to pass the full file name not just the extension. I've updated that and it appears to have fixed the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

Sweens

Hi Ray

Many thanks - works a treat.

Could the tutorial files be updated to reflect this requirement, when you've time.

Cheers
Chris S

Sign in to reply to this post

Ray BorduinWebAssist

Please post a link to the tutorial you were using. I'll take a look.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...