Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8697773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:36:05+00:00 2026-06-13T01:36:05+00:00

I have tried http://docs.joomla.org/Creating_a_file_uploader_in_your_component but first it shows Error: 500 after some research I

  • 0

I have tried http://docs.joomla.org/Creating_a_file_uploader_in_your_component but first it shows Error: 500 after some research I have removed code

"'.$session->getName().'" : "'.$session->getId().'",
"format" : "raw"

and error is gone. Now Image is not uploading anywhere (I have set path ‘/images/’ folder) I am confuse in code for uploading image PART 5 where to use this code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:36:06+00:00Added an answer on June 13, 2026 at 1:36 am
    function storeImageFile()
        {
            jimport('joomla.filesystem.file');
            jimport('joomla.filesystem.folder' );
    
            $path = 'PATH_GOES_HERE'.'designs'.DS;
    
            $folder_permissions = "0755";
            $folder_permissions = octdec((int)$folder_permissions);
    
            //create folder if not exists
            if (!JFolder::exists($path)){
               JFolder::create($path, $folder_permissions);          
            }        
    
            $file           = JRequest::getVar('design_images', null, 'files', 
    
            $count = count($file['name']);
    
            for($i=0;$i<$count;$i++)
            {
                //$i is the array position of the $_FILES array
    
                if(empty($file['tmp_name'][$i]))
                {
                    return false;
                }
    
    
                //Clean up filename to get rid of strange characters like spaces etc
                $filename = JFile::makeSafe($file['name'][$i]);
    
                //setting source and destination
                $temporary_name = $file['tmp_name'][$i];
                $filename       = str_replace(' ', '_', $file['name'][$i]);
                $dest           = $path.$filename;
    
                if(JFile::upload($temporary_name, $dest))
                {
                    echo "File Upload Successful";
                    return true;
                }
    
            }
    
    
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried this example http://www.bennadel.com/blog/1056-ColdFusion-CFPOP-My-First-Look.htm , but it retrieve emails from POP server.
I have tried to do this refering to following link. http://skypher.com/index.php/2008/07/28/function-list-for-php/ But no success.
I have tried to follow the instructions here http://docs.oracle.com/cd/B31017_01/web.1013/b28221/cmp30cfg001.htm Along with using generic model.
I tried to run the following code from http://docs.python.org/library/mmap.html import mmap # write a
I have tried to implement this jQuery active menu code: http://docs.jquery.com/Tutorials:Auto-Selecting_Navigation $(function(){ var path
http://docs.meteor.com/#meteor_methods I have tried it in publish.js in my server folder. I am successfully
I have tried this approach/hack: http://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/ The problem is this leaves a faint seam.
I am doing a streamed musicplayer for android. I have tried with MediaPlayer mp.setDataSource(http://www.myServerPage.com/songUrl.mp3);
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
I have tried searching over the internet about this problem but not able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.