7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » [Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 936 Views |
-
[Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?

24 April 2010 at 5:00pm Last edited: 23 August 2010 11:39am
This is the error I get on 2.4RC1. Note I also have problems on 2.3.7 that I can post here if you need.
Anybody can help?[Warning] file_get_contents(/Users/xxx/Sites/silverstripe-v2.4.0-rc1/swfupload/javascript/swfupload_vars.js) [function.file-get-contents]: failed to open stream: No such file or directory
GET /silverstripe-v2.4.0-rc1/admin/assets/EditForm/field/Files/uploadLine 513 in /Users/xxx/Sites/silverstripe-v2.4.0-rc1/sapphire/core/Requirements.php
Source504 else $this->customHeadTags[] = $html;
505 }
506
507 /**
508 * Load the given javascript template with the page.
509 * @param file The template file to load.
510 * @param vars The array of variables to load. These variables are loaded via string search & replace.
511 */
512 function javascriptTemplate($file, $vars, $uniquenessID = null) {
513 $script = file_get_contents(Director::getAbsFile($file));
514 $search = array();
515 $replace = array();
516
517 if($vars) foreach($vars as $k => $v) {
518 $search[] = '$' . $k;
519 $replace[] = str_replace("\\'","'", Convert::raw2js($v));Trace
* file_get_contents(/Users/xxx/Sites/silverstripe-v2.4.0-rc1/swfupload/javascript/swfupload_vars.js)
Line 513 of Requirements.php
* Requirements_Backend->javascriptTemplate(swfupload/javascript/swfupload_vars.js,Array,)
Line 129 of Requirements.php
* Requirements::javascriptTemplate(swfupload/javascript/swfupload_vars.js,Array)
Line 168 of SWFUploadConfig.php
* SWFUploadConfig::Bootstrap()
Line 20 of SWFUploadField.php
* SWFUploadField->__construct(UploadForm,Upload,,Array)
Line 265 of FileDataObjectManager.php
* FileDataObjectManager->getUploadFields()
Line 302 of FileDataObjectManager.php
* FileDataObjectManager->UploadForm()
Line 227 of FileDataObjectManager.php
* FileDataObjectManager->upload(SS_HTTPRequest)
Line 134 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(/admin/assets/EditForm/field/Files/upload)
Line 127 of main.php -
Re: [Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?

25 April 2010 at 4:28am
Well does that file exist?
-
Re: [Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?

25 April 2010 at 1:41pm
Are you referring to a file that I am attempting to upload?
I get the error BEFORE I can select any file, when I click on "upload file". -
Re: [Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?

25 April 2010 at 2:39pm
No, I mean the file that it's saying doesn't exist..
file_get_contents(/Users/xxx/Sites/silverstripe-v2.4.0-rc1/swfupload/javascript/swfupload_vars.js)
-
Re: [Solved] Is it just me? I have problems uploading files with DataObject_manager and SWFuploader module?

25 April 2010 at 4:16pm
Duuuuh!!
Renamed "module-dataobject_manager-r394" to "dataobject_manager" and "module-swfupload-r375" to "swfupload" and it works.
Thank you!!!
| 936 Views | ||
|
Page:
1
|
Go to Top |

