Development

#3334 (Incorrect File Upload Path)

You must first sign up to be able to contribute.

Ticket #3334 (closed defect: fixed)

Opened 8 months ago

Last modified 7 months ago

Incorrect File Upload Path

Reported by: Dannyrulez Assigned to: fabien
Priority: major Milestone: 1.1.0 RC1
Component: configuration Version: 1.1.0 BETA2
Keywords: Cc:
Qualification: Unreviewed

Description

File: symfony\helper\ObjectAdminHelper?.php
Line: 35
Variables:

Linux:
sf_web_dir: /home/hlwebs/public_html/mundore/web
sf_upload_dir: /home/hlwebs/public_html/mundore/web/uploads

Windows:
sf_web_dir: 'C:\AppServ\www\mundore\web'
sf_upload_dir: 'C:\AppServ\www\mundore\web\uploads'

Problem:

$relativeUploadDirName = str_replace(sfConfig::get('sf_web_dir'), '', sfConfig::get('sf_upload_dir'));
$image_path = image_path('/'.$relativeUploadDirName.'/'.$include_link.'/'.$value);

Line 35 Return:

Linux: /uploads
Windows: \uploads

$image_path now is:

Linux: //uploads/...
Windows: /\uploads/...

Change History

05/04/08 14:14:04 changed by fabien

  • milestone set to 1.0.14.

05/05/08 09:46:47 changed by fabien

  • milestone changed from 1.0.14 to 1.1.0 RC1.

05/05/08 09:48:45 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [8782]) fixed Incorrect File Upload Path (closes #3334)