Create a list of files in the folder

Hey,.

I have a new section where a user can add new ones to the site via a form, it collects the following information and stores them for MySQL DB: title, date (timestamp), history, attachment

Some news will have an attachment with it as a pdf file I want to be able to store the path to the database when there are added, the news.

If there is an attachment, I have need of the user will be able to select from a drop-down list - it must retrieve a list of files in a folder (news_files) on the server and when the news is added to the path and file name is stored in the database with the coresponding record.

I already have the download of sorting part, I just need a way to read the files when they are uploaded and them disply in a menu drop-down.

Any help would be appreciated.

Thank you

Drew

Drew,

Like this?

--
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com

"drewkennelly" wrote in message news:[email protected]...
> Hey,.
>
> I have a new section where a user can add new ones to the site via a form, it
> collects the following information and stores them for MySQL DB: title, date of the
> (timestamp), history, attachment
>
> Some news will have an attachment with it as a pdf file I want to be
> able to store the path to the database when there are added, the news.
>
> If there is an attachment, I have need of the user be able to select a
> drop-down list - this list should get a list of files in a folder
> (news_files) on the server and when the news is added to the path and name of the file is
> stored in the database with the coresponding record.
>
> I have the download of sorting part, I just need a way to read the
> files after they are downloaded and them disply in a menu drop-down.
>
> Any help would be appreciated.
>
> Thank you
>
> Drew
>

Tags: Dreamweaver

Similar Questions

  • You can create a list of files in the folder text file in Windows 7?

    I'm trying to compare files in two different folders, file name, creation date, size of the file. Is there an "easy way" to create a list of files with attributes?

    Thanks for the help.

    http://support.Microsoft.com/kb/196158

    See the section on the command line, for win7 its CMD (search files programs & > cmd)

    Help lists the DGM

  • Error: failed to create or save new files in the folder where it was downloaded during the upgrade from Windows Vista to Windows 7

    Original title:

    Attempt to upgrade Windows Vista to Windows 7

    I try to update my Windows Vista to Windows 7. I bought to download the rom update the Microsoft store and downloaded, but when I try to start the upgrade I have a stateing message that it is impossible to create or save new files in the folder where it was downloaded. I checked the security permissions in the file and made sure that no programs are 'read only', but it won't always go beyond this point!

    Hello

    What is the edition of Windows Vista installed on the computer?
    Make sure that you upgrade to the correct version, some versions of Windows cannot be upgraded with the installation disc you are trying to use. For example, you cannot upgrade a 32-bit version of Windows to a 64-bit version, or upgrade a higher edition of Windows like Windows Vista Ultimate Edition, to a lower edition, such as Windows 7 Edition Home Premium. If this is the case, you will need to use the custom during installation option.
    Before you attempt to upgrade, please run the Windows 7 upgrade Advisor:
    http://Windows.Microsoft.com/en-us/Windows/downloads/Upgrade-Advisor
    Also, check if your computer is compatible for Windows 7, using the Compatibility Center:
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx
    To learn more about the upgrade process, please visit the link below:
    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7
    I hope that helps!
  • List of files in the folder

    Hello.

    Is there a way to get a list of files in a specific folder? For example, if I want to build a table containing the names of the .jpgs in the local folder ' my_images/holiday', so I can load ordered in a swf file, how can I get?

    Thank you in advance.

    One way is to use a script like PHP, .NET, or ColdFusion language to read the directory for you. Then you can use (sendAnd) charge of Flash in the page to retrieve the output.

  • Windows 7 - upgrade Setup error we are unable to create or save new files in the folder in which this application was downloaded

    I just bought the Windows 7 Home Premium upgrade from the downloaded Microsoft store the installation files. I am currently on Windows XP 32-bit, and try to install Windows 7 Home Premium 64-bit.

    Now, whenever I try to run the executable from Windows 7, I get this error message:
    Now, I tried to make the folder I downloaded files is NOT unalterable, but every time I try to do it right, he returns to read-only. I can do all the files Windows 7 installation not in read-only, but the folder remains read-only. I moved the installation files in different locations, only to get the same results.
    Yes, I'm on an administrator account and I still have this problem.

    Hello

    32-bit to 64-bit is not a supported upgrade path. You must do a clean installation of 64-bit.

    In addition, upgrade is not possible from XP to Win7. It will be a custom installation.

    As a first step I suggest you back up the data before you do a custom installation. Check the link for more information.

    http://support.Microsoft.com/kb/320820

    Also check the following links:

    Upgrade Windows XP to Windows 7

    http://Windows.Microsoft.com/en-AU/Windows7/help/upgrading-from-Windows-XP-to-Windows-7
    http://Windows.Microsoft.com/upgrade
    http://TechNet.Microsoft.com/en-us/library/dd772579 (WS.10) .aspx

    I hope this helps.

  • How can we get the list of files in a folder?

    Hi all

    My plugin has a list of .ai files in the user interface of the folder C:\Program Files\Adobe\Adobe Illustrator CS4\Plug - ins\Illustrator Filters\MyPlugin.

    Also, if we put 'MyFile.ai' in the folder 'MyPlugin', then the user interface should display the MyFile (file name) in a drop-down list box.

    I want to get the list of files in the folder "MyPLugin".

    Download the plugins to HAVE

    AI::filepath pluginsFolder.

    sAIFolders-> FindFolder (kAIPluginsFolderType,

    fake , pluginsFolder);

    MyPlugin folder

    AI::UnicodeString MyPluginFolder (pluginsFolder.GetFullPath ());

    MyPluginFolder.append (ai::UnicodeString ("\\Illustrator Effects\\Myplugin\\"));

    Here I get the my full path of the folder plugin in "MyPluginFolder".

    Now, this file, I want to get the list of files that I placed?

    What are the APIs available in artificial intelligence to get the list of files in a folder?

    If you want to enumerate files in a directory, you have to use the OS APIs. I does not provide for this. There are different ways to find important files/directories related to AI, but nothing else.

    The APIs to do this in the operating system are usually pretty easy to use but. Annoying if you try to hit Mac and Windows, but a little care in the design of your interface and hide the worst.

  • Create a railway to run a program and a list of files to the backup server

    To save time and make the infallible process, how can I create a program in windows to save a list of files to the server.

    HI KKLeung,

    There are many software to synchronize file that you can use.
    • http://en.Wikipedia.org/wiki/Comparison_of_file_synchronization_software
    • http://Mashable.com/2008/07/24/synching-files-and-folders/
    But why don't you directly record your file on the server directly?
    • create a shortcut on your desktop
    • Paste the link server as the folder path folder. (for example \\ServerName\ShareName$\dir1\dir2)
    Or create a network drive in my computer.
  • In the Finder, how can I search/list of the files in the folder of final characters in filenames, i.e. 'to end-with' alphabetical rather than by default "starting by" alphabetical?

    In the Finder, how can I search/list of the files in the folder of final characters in filenames, i.e. 'to end-with' alphabetical rather than by default "starting by" alphabetical?

    As far as I know, you can't.

  • Give permission to the domain users to replace the file in the folder created by domain admin

    We have a domain controller in our network. also we have the domain users and domain administrator. We create a batch file that copies a file to the folder by using a script to the server policy when users open a session input/output. However if the admin area access system cant use overwrite file in the folder. We want to give permission to the domain users to replace the file in the folder created by the domain administrator.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro, w8itpro, windowsvistaitpro, windowsxpitpro, windowsintune

    Hope the information is useful.

  • Move the file in the folder of the same name in AppleScript

    I had a problem with the script below. Basically, on the execution of the script, I want to create folders based on the name of the file and move the files in the files of autocorrelation. However, at the minute, that I'll have to choose the folder in which the script should run.

    Folder to choose a folder

    say application 'Finder '.

    located fileList to the name of every file in Folder with name extension is "m4v".

    end say

    the value point text delimiters to ".".

    Repeat with dittos in list of files

    get each text element of dittos

    masterFile defined in the point 1 of the result

    say application 'Finder '.

    create a new folder to Folder with properties {name: masterFile}

    move (each file from the folder Folder whose name contains masterFile) will cause

    end say

    end Repeat

    Ideally, I would like it to run automatically, but the folder is on an external hard drive. (\Volumes\Lacie\Movies). and I had problems to use the POSIX and 'alias' to properly re-create the path of the file desired.

    Any help would be greatly appreciated. Thank you!

    Hello

    You can try something like the AppleScript script which is a simple shell script wrapper.

    set d to (choose folder)'s POSIX path
    do shell script "/bin/bash -s <<'EOF' - " & d's quoted form & " 2>&1
    cd \"$1\" || exit
    shopt -s nullglob
    for f in *.m4v
    do
        m=${f%.*}
        [[ -d $m ]] || mkdir -p \"$m\" || continue
        mq=$(sed 's/[^[:alnum:]]/\\\\&/g' <<< \"$m\")   # quote meta characters for regex
        find -E . -depth 1 -type f -iregex '.*/'\"$mq\"'.[[:alnum:]]+$' -print0 | xargs -0 -J% mv % \"$m\"
    done
    EOF"
    

    For example, given that you choose/path/to/directory in the folder - source

    Input state:

    /path/to/directory/abc.m4v
    /path/to/directory/abc.txt
    /path/to/directory/abcd.m4v
    /path/to/directory/abcd.txt
    

    Status of the output:

    /path/to/directory/abc/abc.m4v
    /path/to/directory/abc/abc.txt
    /path/to/directory/abcd/abcd.m4v
    /path/to/directory/abcd/abcd.txt
    

    Briefly tested under OS X 10.6.8 but no guarantee of any kind. Please make sure that you have a full backup of the original files and directories before you run this kind of script.

    Good luck

    H

  • How to get all the names of files in the folder and move it to another folder

    Hello
    How to read the files in a particular directory with PL/SQL, without knowing the exact name? My application interface with another system that puts the files in a specific directory on the server. UTL_FILE method reads a file when you know the name of the file, but I don't know the name in advance. Is it possible to output the name of the file? I also used the method of Tom "http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584" (related to the Java stored procedure) but am getting error of procedure "ORA-00900: invalid SQL statement. Here's the code I used Tom - forums

    CREATE or REPLACE AND compile java source named 'DirList '.
    AS
    import java. IO;
    import java.sql. *;

    public class DirList
    {
    Public Shared Sub getList (string directory)
    throws SQLException
    {
    Path = new file (directory);
    List of strings [] = path.list ();
    Element string;

    for (int i = 0; i < list.length; i ++)
    {
    item = list;
    #sql {INSERT INTO DIR_LIST (FILENAME)
    {VALUES (: element)};
    }
    }

    }
    /
    **********************************************************************
    CREATE OR REPLACE PROCEDURE get_dir_list (p_directory in VARCHAR2) AS java language
    name ' DirList.getList (java.lang.String) htp.p (p_directory) ";
    **********************************************************************
    get_dir_list exec (' / CERT_XML');
    **********************************************************************

    I would like to know is there any alternative approach to retrieve all the names of the files in the folder of the server and move these files to a different folder?

    Thank you
    Amit Bhandari

    Hello

    It is a limitation of UTL_FILE in Oracle that we can do with Java stored procedures in Oracle.

    We can read the files in Server directory using the following steps:

    Please follow the steps below:

    1. creating a Type of Type Varchar2.

      CREATE OR REPLACE TYPE file_list AS TABLE OF VARCHAR2(255);
    

    2. next, we need create a library of Java file

    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "ListVirtualDirectory" AS
      import java.io.*;
      import java.security.AccessControlException;
      import java.sql.*;
      import oracle.sql.driver.*;
      import oracle.sql.ArrayDescriptor;
      import oracle.sql.ARRAY;
    
      public class ListVirtualDirectory {
        public static ARRAY getList(String path) throws SQLException, AccessControlException {
    
        Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    
        File directory = new File(path);
    
        ArrayDescriptor arrayDescriptor = new ArrayDescriptor("FILE_LIST",conn);
    
        ARRAY listed = new ARRAY(arrayDescriptor,conn,((Object[])directory.list()));
      return listed; }}
    

    The most advanced method overrides by removing information about java.properties of exception management settings. You can do this by catching the exception thrown in native mode and rethrow it or ignore it. The example it up again.

    3. then, you must create a Wrapper function:

    CREATE OR REPLACE FUNCTION list_files(path VARCHAR2) RETURN FILE_LIST IS
    LANGUAGE JAVA
    NAME 'ListVirtualDirectory.getList(java.lang.String) return oracle.sql.ARRAY';
    

    4 grant permissions to the Driectory:

    BEGIN
      DBMS_JAVA.GRANT_PERMISSION('USER_NAME'
                                 ,'SYS:java.io.FilePermission'
                                 ,'C:\JavaDev\images'
                                 ,'read');
      END;
    

    5. then you can read the contents of the directory

    SELECT column_value FROM TABLE(list_files('C:\JavaDev\images'));
    

    That displays all the files in the mentioned directory.

    Thank you
    Shankar

  • The Acrobat 9 batch - get PDF files of the folder names?

    Hello

    Can someone give me an example with the use of batch (when the value of a specific folder/files) for a list of the names of files in this folder? I was not able to find examples online. It does not seem be any batch built in sequences that automatically do so I guess it will have to be done with javascript?

    In the end, I need to automate a process (I was hoping to create a batch sequence to do this) which will allow me to invite a user to choose a record source to PDF files and then based on this selection, run a Javascript that I create, which will merge all of the PDF files in this folder into a new PDF apply some culture settings to each page, and then ask the user where to save the merged PDF file?

    Has anyone ever done something like this? I'd love to see an example of how this could be able to achieve.

    Thanks in advance.

    Have you tried to create a batch process to test (now called 'Actions')?  Actions in Acrobat 10 has the 'Merge all the files in the folder' option, and batching in previous versions has always included a commad culture page, but also an option to ask the user where to save the file.

    There are many examples and articles on this topic at http://www.acrobatusers.com

    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com

    The Acrobat JavaScript Reference, use it early and often

    Then more important JavaScript development tool in Acrobat
    The Console window (video tutorial)
    The Console Window (article)

  • Manually remove the iOS App files in the folder "Mobile Applications" on a Mac.

    In my eagerness, trying to save valuable disk space, I deleted all the files (40 GB) in the mobile apps on my mac. This folder has accumulated over 900 files app over the years. I am currently using only 160 apps on my iPhone. I deleted all the files (and emptied the Recycle Bin). After having to remove it, I was unable to download, only the applications that I use currently on the phone (160 of them), in my iTunes again (from the app store in iTunes). This is because iTunes App store thinks that I have already downloaded these applications; where I have deleted just manually in the Mobile Applications folder.

    After reading on the web that it is a mistake, I got cold feet and began a restoration of my time Machine to all 900 app files back.

    I started the process of restoring time Machine is because the thinning app is NOT allowing me to transfer my iTunes on mac purchases. I first thought I can "put" just the 160 apps from my phone, Mobile Applications to iTunes folder. Now, I realize that I can do is not "transfer purchases". I am on iOS 9.2.1 (6s iPhone Plus) and OS X El Captain (10.11.3) (Macbook Air).

    Moreover, I have a PDF file with a list of all the files in the Mobile Applications (900 application files) folder. I did it using an application called Print window. So I did not have a detailed list of all the files (apps) that I never downloaded. This is so that I can download the Apps on my iPhone directly (from the cloud) in case I need an app on my phone, in the future

    Critical how's this for keep the files in the folder of Mobile Applications on my Mac? In which case I have to restore my iPhone, applications will only download from the Cloud? If the answer is Yes to this question, I can go ahead and delete all the files in the folder of Mobile Applications manually to recover a good amount of disk space?

    I hope I'm clear in my question and description.

    Thank you!

    You have more need to keep a local copy of the apps. Any application that you do not have at the time of a restoration is downloaded from the cloud provided that it is always available. You can view your list of 160 apps for everything you'd be really sad to lose and keep a copy of those. You don't necessarily need in the library. As long as you have the file .ipa somewhere you can add new in your library at a later date.

    TT2

  • The user may not delete the file from the folder on the server but can rename file

    Hi all

    Please suggest how to give permission to some folder so that the user may not delete all the files in the folder but can create, update, or RENAME the folder.
    I gave permission where user is not able to delete the file, but the user is also able to rename the file or folder in this specific folder.

    Thanks in advance.

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/winserverfiles/threads

  • List of files in a folder in a text list

    Read it please I want to make a list of files within a folder.
    I can do Dir C:\Cab, but as the cottage:

    27/07/2012 13:02 .
    13/04/2012 06:58 6 819 abc.py
    19/04/2012 the 17 433 07:44 about.png
    13/04/2012 the 6 800 aboutDialog.py 06:59
    19/04/2012 the 23 804 abouten_US.res 06:50
    19/04/2012 108 abp.dll 544 08:41
    19/04/2012 the 7 912 07:14 abpen_US.res
    19/04/2012 acc.dll 716 288 08:41

    I wonder if it is not run this command and get just the names of the exported without the size files date ect

    Or better if there is a way to send a text with directory document here in from them would be exit 1

    Filename C:\Cab\

    The reason im trying to understand this is that I have about 3500 files that I want to put in a cab file and I don't want to alter each line because it would take FOREVER!

    Sure.

    Just enter the command:

    dir /b /s C:\Cab > outfile.txt

    This simply gives you a list of files in the C:\Cab directory and put the list in the file "outfile.txt".
    The "/ s" will include subdirectories and will also give full paths

    HTH,
    JW

Maybe you are looking for