Skip to content

Commit

Permalink
Fix uploads with Symphony 2.2.3.
Browse files Browse the repository at this point in the history
Symphony 2.2.3 seems to always pass 'true' for the `$simulate`
parameter, which prevents this from ever upload a file to S3.
  • Loading branch information
tonyarnold committed Oct 2, 2011
1 parent f82b3bd commit 4cdb017
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fields/field.s3upload.php
Expand Up @@ -183,11 +183,6 @@ public function processRawFieldData($data, &$status, $simulate=false, $entry_id=

if ($this->get('unique_filename') == true && isset($data['name'])) $this->getUniqueFilename($data['name']);

if($simulate) return;




// Editing an entry: Where we're uploading a new file and getting rid of the old one
if($entry_id){
$row = $this->Database->fetchRow(0, "SELECT * FROM `tbl_entries_data_".$this->get('id')."` WHERE `entry_id` = '$entry_id' LIMIT 1");
Expand Down

0 comments on commit 4cdb017

Please sign in to comment.