Parsing Error On The Name Of The Uploaded File
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parse backend new Error for uploading files - Error: File name must be a string - PFFile up vote 6 down vote favorite 1 I'm building an IOS app and using parse.com as a backend. All of a sudden, today I am getting this error - Error: File name must be a string without any other explanation. I'm certain the file name that I am using is a string. I haven't changed any of the Native IOS code so it must be a new Parse issue. The only difference - today I updated my account to the new pricing model on Parse, wondering if that's related? // Code snippet NSString *fileName = @"test.mov"; // Also tried just @"test" PFFile *file = [PFFile fileWithName:fileName data:fileData]; // NSData - 286553 bytes [file saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { // Break point right here - this is where the error occurs. ios objective-c parse.com share|improve this question edited Apr 30 '14 at 22:24 asked Apr 30 '14 at 22:04 kevin 898717 Code. Where is it? –Fogmeister Apr 30 '14 at 22:13 @Fogmeister, just ran another app I built that uploads files to my Parse account. Same exact error out of the blue. –kevin Apr 30 '14 at 22:20 Cool. But still without code we can do nothing. I have a parse app that I wrote a while back and I also am uploading PFFiles and I too switched to the new pricing plan today and I am not getting this crash. There must be something in your code that is causing this. –Fogmeister Apr 30 '14 at 22:22 Damn. Just posted a code snippet. You think it's something to do with the data I've uploaded already? –kevin Apr 30 '14 at 22:25 1 Yes, the e
0 September 2 in Free community support I have problem with the Upload Functions of the Editor. I get this error and I have no idea what I do wrong. Parse error: syntax error, unexpected ''i_pdf'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in C:\xampp7\htdocs\finswimming\assets\lib\evm_server_processing.php on line 101
I want upload some files (pdf, lxf, zip) and the Information about the files should stored in a http://stackoverflow.com/questions/23398816/parse-backend-new-error-for-uploading-files-error-file-name-must-be-a-string extra table, like your example. I have no idea where my fault is. Andreas php
if((include 'confic.inc') == FALSE){ echo 'Failed include config'; } if((include PLUGIN_DIR.'DTables/Editor/1.5.6/php/DataTables.php') == FALSE){ echo 'Failed include Edit'; } use DataTables\Editor, DataTables\Editor\Field, DataTables\Editor\Format, DataTables\Editor\Mjoin, DataTables\Editor\Upload, DataTables\Editor\Validate; $db->sql( 'CREATE TABLE IF NOT EXISTS `ltv_events` https://datatables.net/forums/discussion/37348/parse-error-upload-function ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT , `federation` VARCHAR(255) NOT NULL, `b_date` DATE NOT NULL , `e_date` DATE NOT NULL , `deadline` DATE NOT NULL , `m_title` VARCHAR(255) NOT NULL , `m_course` VARCHAR(5) NOT NULL , `m_street_1` VARCHAR(255) NOT NULL , `m_street_2` VARCHAR(255) NOT NULL , `m_zip` VARCHAR(10) NOT NULL , `m_city` VARCHAR(255) NOT NULL , `m_nation` VARCHAR(5) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB CHARACTER SET utf8 COLLATE utf8_unicode_ci;' ); $FormattoSQL = 'd. F Y'; $SQLtoFormat = 'd. F Y'; $store_year = date('Y'); Editor::inst( $db, 'ltv_events', 'id' ) ->fields( Field::inst( 'ltv_events.id' ), Field::inst( 'ltv_events.b_date' ) ->validator( 'Validate::dateFormat', array( 'empty' => false, 'format' => $FormattoSQL )) ->getFormatter( function ($val, $data, $opts ){ if($val === '0000-00-00'){ return NULL; } else{ return date( 'd. F Y', strtotime( $val )); } } ) ->setFormatter( 'Format::date_format_to_sql', $FormattoSQL ), Field::inst( 'ltv_events.e_date' ) ->validat
Parse error: syntax error, unexpected 'FILES' (T_STRING) Discussion about any web related scripting languages like JavaScript, ASP, and PHP. Post Reply https://www.htmlvalidator.com/CSEForum/viewtopic.php?t=2229 Print view Search Advanced search 4 posts • Page 1 of 1 epcs Rank 0 - Newcomer Posts: 2 Joined: Wed Oct 29, 2014 10:36 pm https://sendy.co/forum/discussion/604/parse-error-when-importing-csv-list/p1 Parse error: syntax error, unexpected 'FILES' (T_STRING) Quote Postby epcs » Wed Oct 29, 2014 10:43 pm I am trying to validate my PHP and I receive parsing error this error:PHP Syntax Check: Parse error: syntax error, unexpected 'FILES' (T_STRING) in your code on line 53if (file_exists($_FILES['upload']['tmp_name']) && is_file($_ FILES['upload']['tmp_name'])) {PHP Syntax Check: Errors parsing your codeI have tried several changes, but to no avail. Is anyone able to help. My PHP is below for reference. I have made the line red and parsing error on bold for people to find easily. Thank you for your help in advance.The file has been uploaded!
'; } // End of move } else { // Invalid type echo 'Please upload a JPEG or PNG image.
'; }} // End of isset // Check for an error: if ($_FILES['upload']['error'] > 0) { echo 'The file could not be uploaded because: '; // Print a message based upon the error. switch ($_FILES['upload']['error']) { case 1: print 'The file exceeds the upload_max_filesize setting in php.ini.'; break; case 2: print 'The file exceeds the MAX_FILE_SIZE setting in the HTML f
All Discussions1,747 Announcements3 Questions574 Suggestions255 Using Sendy195 Translation15 Troubleshooting705 In this Discussion Ben January 2013 LASD January 2013 Troubleshooting Parse error when importing CSV list Vote Up0Vote Down LASD January 2013 Posts: 3Sendy user Hello, When trying to upload a CSV list I receive this error: Parse error: syntax error, unexpected T_VARIABLE in /.../.../public_html/sendy/includes/subscribers/import-update.php on line 1 I have checked the import-update.php file for data corruption and everything seems to be ok. Thanks in advance for your help. 4 Comments Vote Up0Vote Down Ben January 2013 Posts: 2,810Sendy support Hi @LASD, Please PM me your FTP login so I can check. Thanks. Ben Vote Up0Vote Down Ben January 2013 Posts: 2,810Sendy support Hi @LASD, Thanks for the FTP credentials. Your /includes/subscribers/import-update.php file is corrupted (although you mentioned it's not): Please see this thread → http://sendy.co/discussion/480/import-csv-problems/p1 If you're using FileZilla, switch to binary mode and re-upload the file. Thanks. Ben Vote Up0Vote Down LASD January 2013 Posts: 3Sendy user I use Dreamweaver and did not see the file as corrupted. Would you recommend re-uploading all the sendy files in binary mode? Thanks for your help! Vote Up0Vote Down Ben January 2013 Posts: 2,810Sendy support You're welcome! If you want to be safe, you can re-upload all files. Thanks. Ben This discussion has been closed. All Discussions