Delete file in the filesystem

Hello,
I am developing an application with the apex.
I created a section where you can upload files to the linux file system to a specific folder, not upload to the database, I do not want me to take unnecessary space.
I can also download the file list and I'm interested.
Now what interests me to complete my application is that when I list the files that are uploaded, I can delete one that interests me this and to delete the file system,
I tried to remove it UTL_FILE.FREMOVE but I think it only works with files with extension. txt, and I have files with different extension type pdf, doc ... etc.
Can you give me a solution?
My OS is ubuntu 10.10 and used Application Express 4.0.2.00.07
Thanks
Greetings

The exceptions raised by <tt>utl_file.fremove</tt> are listed in the procedure's documentation. <tt>no_data_found</tt> is not one of the docuimented exceptions: if the exception is being raised by <tt>utl_file.fremove</tt>, then either it <em>might</em> be an undocumented feature&mdash;and hence a documentation bug&mdash;or an Oracle software bug. However the problem is more likely to be in your code.
It's very difficult to troubleshoot this problem remotely: it can't be replicated on apex.oracle.com due to the file system access required, and no one but you has access to your server. You'll therefore need to provide a very complete picture of the situation.
<li>What is your full database version and edition (get this using <tt>select banner from v$version</tt>)
<li>Where is your code? If it's all in your APEX app, then upload the app to apex.oracle.com and either make an export link available or post developer login credentials here. (We can't replicate the problem there but it's the easiest way to see the full code.) If the code is in a package or procedure then post it here <em>wrapping the code \...\ tags</em> to preserve formatting.
<li>Replicate the circumstances of the error and post the results here. If possible do this using a reduced test case from sqlplus as this will be easier to cut/paste. If you have to do it through APEX then get a debug trace. Again wrap any diagnostic output/trace in \...\ tags.
<li>Post a full directory listing (<tt>ls -al</tt>) of the relevant OS directory at the time of the error here, wrapped in \...\ tags.

Similar Messages

  • Delete file from the filesystem?

    Hello,
    I have an easy question. But I don´t find the right oracle packages.
    I want to delete a file from the filesystem. How can I do this?
    Thanks for your help!

    Paul,
    If connecting to the Web server on East-Coast USA is not optimal for you, or if you aren't using Oracle 10g Release 2, try this URL instead:
    http://www.oracle.com/technology/documentation/index.html
    You need to look for the PL/SQL Packages and Types Reference document, the section detailing the UTL_FILE package.
    Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Deleting files from the filesystem

    How can you delete a file from the filesystem in Java? Is it possible?
    Thanks

    File file = new File("c:\\test\\abc.txt");
    file.delete();

  • I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?

    I deleted all my photos and videos and then delete the deleted files but the photo app is still taking up 12 GB of space and I have no room for new stuff.  How can I clear the memory space used by my deleted videos and photos?  I don't know why the photos are still taking up space and if I will have to reset my phone to get rid of the problem.

    Hey there TowneJ,
    Welcome to Apple Support Communities.
    The article linked below provides troubleshooting tips that’ll likely resolve the issue that you’ve described, where deleted files appear to be taking up space on your iPhone 5.
    If you get a "Not enough free space" alert on your iPhone, iPad, or iPod touch - Apple Support
    So long,
    -Jason

  • How do I delete files on the startup disc on a macbook pro

    How do i delete files on the startup dics to make room to download itunes and such on my macbook pro

    Move items you don't need on it, such as the iTunes and iPhoto libraries, to another drive, verify they work in the new location, and then delete them from the internal drive. If you don't need something at all, drag it to the Trash and empty it.
    (92026)

  • How to restore a deleted file from the iCloud

    How to restore a deleted file from the iCloud

    first you right click on the ipad (on the left in itunes): restore from backup.
    It will restore to factory ALL data anda apps
    At some point it will offer restoration from itunes, but you will only see backups made on your computer.
    If you wish to restore from icloud you forget itunes on your computer, go to the ipad and follow the instructions. At some point you will be asked to choose from icolud or confgiure it as a new ipad.
    it works

  • How do I store and delete files on the iphone

    how do I store and delete files on the iphone

    Files/documents need to be stored/associated within an app on the iPad, unlike 'normal' computers there is no file system which allows you to save files with no means of being able to read/use them. So if you want to store a file on the iPad you first need an app on the iPad that supports that file type.
    How you then get the file onto the iPad and into the app will depend on what the app is and what transfer method(s) it supports. e.g. some apps use the file sharing section at the bottom of the device's apps tab when connected to your computer's iTunes, some apps support the transfer of files via your wifi network, the iBooks app uses the Books section of your iTunes (and the device's Books tab) to sync content, and other transfer methods include email attachments, Dropbox etc. The file is then found by going into your chosen app and opening/using the file.

  • Is it possible to recover deleted files from the Microsoft Word app for iPhone? I am desperate.

    Is it possible to recover deleted files from the Microsoft Word app for iPhone? I am desperate.

    From the Microsoft Word app they say "Access Word documents from OneDrive, Dropbox, iCloud, OneDrive for Business, or SharePoint" so it sounds like you can specify where they are saved. However, my guess would be that the default will be OneDrive.
    To the OP: Have you tried logging into onedrive.live.com to see if you can see your letter there?

  • Is it possible to retrieve deleted files from the cloud i.e. contact list?

    Is it possible to retrieve deleted files from the cloud i.e. contacts?

    If you have an iCloud backup of an iOS device that was made while the contacts were still on it, you may be able to restore them from the backup by following this user tip from Winston Churchill: https://discussions.apple.com/docs/DOC-4841.

  • How to write files to the filesystem with portal/plsql

    Hi,
    is there a way to write files to the filesystem via Portal?
    Or can i call an external programm (perl, php) to do so, while portal writes further information to database?
    thank you for the help
    Ralf Schmitt

    Hi Ralf,
    my primary task is to publish download-links to files stored ... somewhere as a linklist. I tried to store and download files to/from the database but i cant get it to run. Upload works, download doesn't.
    (i'm not talking about a single form-query-download-link! I need a report-like linklist)If you want to do this you'll have to write some code but sure it's possible - i did it myself.
    The links in the link list in your report should call a stored function retrieving the files from Wwdoc_document or whatever is the document table defined in your DAD. Simply select BLOB_CONTENT into a BLOB variable from the table, provided you know what file to read :-) The function would then read the BLOBs and send them to the client's browser via DBMS_LOB - it's poor design but it works just as smooth as it could and it's really performing. This would simply display the file into your browser or prompt for file save location, depending on what browser you are using and its client settings.
    I guess this is not so clear, if you want some more details feel free to e-mail me at [email protected]
    Another way would be to use wpg_docload to both download and upload files to/from the DB.
    Now i try to figure out if it is possible to store the files to the filesystem and write only additional info like description or path into db.Again, yes, it is. I can't recall exactly how I did it ^_^ but the trick is to create a virtual directory in the DB - pointing at a physical directory on the file system you want to write to, and you have to have full read-write permission on the directory itself, and its path must be included in the utl_file_dir database parameter. Then you use both COM Automation or UTL_FILE to write files.
    would it be possible to let a portal-form write info to the db and then pass the file to a php-script?
    regards,
    Ralf Schmitt

  • Why mac always delete files on the ipod? and the third this!

    why mac always delete files on the ipod? and the third this!

    It's not Mac, it is iTunes, especially the recent version.
    Every week you can see about 10 posts on iPod missing songs after ejecting from iTunes.
    Well maybe Apple is telling iPod users, to buy their latest innovation like iPad 2.

  • I delete files but the available space does not change.

    I delete files but the available space does not change.
    In fact, the space even decreases after deleting attachments and the list of incoming email is empty.
    What happened? Help!

    Fixed.

  • Is there a keyboard shortcut to delete files without the need to use the mouse? In OS X Mavericks.

    Is there a keyboard shortcut to delete files without the need to use the mouse in OS X Mavericks?

    my question is precise
    Not exactly........
    Cmd-Delete deletes a selected file without a mouse.
    What you want, I think, is a way to select the file (presumably in Finder) without a mouse so that it can be deleted.
    If you open a new Finder window - Cmd-N you can navigate with the up/down arrow keys as you navigate a file is selected , once selected it can be deleted with cmd-delete.
    If while navigateing with the up/dpwn arrow keys you encounter a folder you can delete the folder with cmd-delete or open the folder with the right arrow and proceed to naviagte and delete.

  • Problems with deleting files to the trash

    I cant delet files to the trash. The only option is to delet permanently.
    "The file wil be deleted immediately, are you shure you want to proceed?"
    (bad translation from norwegian)
    can anyone please help me?
    -w-

    W, Welcome to Apple Discussions.
    Choose your Home folder and "Get Info" (command-i). Under "Ownership & Permissions" be sure you have "Read & Write" privileges. Under "Details", be sure you are the owner.
    -mj
    [email protected]

  • Why can I not empty my deleted files in the trash?

    Why can I not empty my deleted files in the trash using the instructions provided?

    http://www.thexlab.com/faqs/trash.html

Maybe you are looking for