close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

corrupt downloaded files can't be opened

Thread began 6/09/2014 11:10 am by asarcona308398 | Last modified 6/10/2014 9:26 am by Jason Byrnes | 1765 views | 8 replies |

asarcona308398

corrupt downloaded files can't be opened

Hey Guys,

I've another dilemma...
I'm using DataBridge to download .jpg or .png files.. they seem to be downloading locally and naming ok, but are unable to be opened.
I have attached the file...

the Download Behavior is on line 478...
the button and form are at 784

thanks for your help

Tony

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

Jason ByrnesWebAssist

change the form tag:
<form action="" method="post" enctype="multipart/form-data">

to:
<form action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>" method="post" enctype="multipart/form-data">

Sign in to reply to this post

asarcona308398

see pm

Sign in to reply to this post

Jason ByrnesWebAssist

change the form tag:
<form action="" method="post" enctype="multipart/form-data">

to:
<form action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>" method="post" enctype="multipart/form-data">

Sign in to reply to this post

asarcona308398

I applied changes...no luck...

Sign in to reply to this post

asarcona308398

Jason I noticed this in the forum:

In the 2 previous instances of this problem is was being caused by corruption in some of the files. Specifically it was a problem with extra blank lines being added to the web assist helper files on upload.

this is normally caused by the FTP program being used to upload the files using the Binary transfer method instead of using the ASCII transfer method.

Just so you know, all the files we're trying to work with were uploaded via DFP / DataBridge.

Sign in to reply to this post

Jason ByrnesWebAssist

The FTP info you sent for me does not allow for me to make edits to the page.

But, by turning on visual aids to show invisible element:
View -> Code View Options

Check the Hidden Characters options, I can see that there are a number of placed on the page where there is a space between closing php tag:
?>

and opening php tags, see the attache screen shot for an illustration. in the screen shot, spaces are denoted by dots with hidden characters displaying and line feeds are denoted by backwords p's

you need to remove all instances of spaces, or empty lines between closing php and opening php tags.

Sign in to reply to this post

asarcona308398

Jason,

In Code View I used the "Format Source Code" button on the left side toolbar and selecting "Apply Source Formatting"

And It Works!!

I found this process at:
https://forums.adobe.com/thread/1051264?tstart=0

Thanks for the Always Excellent solution,

Tony

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you have it working.

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