Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Files & Images returns new-file for image

Go to End

3 Posts   1496 Views


Community Member, 145 Posts

26 March 2010 at 12:04pm

Edited: 26/03/2010 12:14pm

Hey Uncle_Cheese,

I recently migrated a site across to new hosting when I launched it, so I'm 99% sure that this issue has something to do with that, but I must be missing something really obvious as to what the culprit is. Basically whenever I try to upload an file now, it just ends up with the filename being new-file rather than the actual file.

Here is the output of the debug (I edited the website address):

---SWFUpload Instance Info---
Version: 2.2.0 Alpha
Movie Name: SWFUpload_0
	use_query_string:         false
	file_post_name:           swfupload_file
	post_params:              [object Object]
	file_size_limit:          5MB
	file_upload_limit:        20
	file_queue_limit:         20
	debug:                    true
	prevent_swf_caching:      true
	button_placeholder_id:    spanButtonPlaceholder
	button_width:             180
	button_height:            24
	button_text:              <span class='button'>Upload files</span>
	button_text_style:        .button { font-family: Helvetica, Arial, sans-serif; font-size: 12px; }
	button_text_top_padding:  6
	button_text_left_padding: 6
	button_action:            -110
	button_disabled:          false
	custom_settings:          [object Object]
Event Handlers:
	swfupload_loaded_handler assigned:  true
	file_dialog_start_handler assigned: true
	file_queued_handler assigned:       true
	file_queue_error_handler assigned:  true
	upload_start_handler assigned:      true
	upload_progress_handler assigned:   true
	upload_error_handler assigned:      true
	upload_success_handler assigned:    true
	upload_complete_handler assigned:   true
	debug_handler assigned:             true

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG: Build Number:           SWFUPLOAD 2.2.0 Alpha 2008-10-17
SWF DEBUG: movieName:              SWFUpload_0
SWF DEBUG: Upload URL:   
SWF DEBUG: File Types String:      *.*
SWF DEBUG: Parsed File Types:      
SWF DEBUG: File Types Description:  ()
SWF DEBUG: File Size Limit:        5242880 bytes
SWF DEBUG: File Upload Limit:      20
SWF DEBUG: File Queue Limit:       20
SWF DEBUG: Post Params:
SWF DEBUG:                         controllerID=46
SWF DEBUG:                         dataObjectClassName=File
SWF DEBUG:                         hasDataObject=0
SWF DEBUG:                         parentIDName=ParentID
SWF DEBUG:                         dataObjectFieldName=
SWF DEBUG:                         fileClassName=File
SWF DEBUG:                         OverrideUploadFolder=assets/NewFolder/
SWF DEBUG:                         fileFieldName=Files
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: controllerID=46
SWF DEBUG: Global Post Item: dataObjectClassName=File
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/NewFolder/
SWF DEBUG: Global Post Item: fileFieldName=Files
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 22309. Total: 22309
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Data: 49
SWF DEBUG: Event: uploadComplete : Upload cycle complete.


Community Member, 145 Posts

1 April 2010 at 3:37pm

Has anyone come across this issue before?


Forum Moderator, 4102 Posts

1 April 2010 at 4:18pm

It's usually an UPLOAD_ERR_CANT_WRITE.. See this thread